awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
chancejs avatar

chancejs/chancejs

0
View on GitHub↗
6,541 stars·464 forks·JavaScript·MIT·18 viewschancejs.com↗

Chancejs

Chance is a JavaScript library for generating random data, designed to produce realistic test data for automated tests and prototypes. It uses a Mersenne Twister pseudo-random number generator that accepts an optional seed value, enabling reproducible sequences of random values across multiple runs.

The library provides a wide range of generators for common data types, including random integers, floats, booleans, characters, strings, and dates, all with configurable ranges and character pools. It can generate realistic geographic data like addresses, as well as financial data such as credit card numbers that pass the Luhn algorithm, currency pairs, and formatted monetary amounts. Chance also supports picking random items or subsets from arrays and generating random names and email addresses.

The library is extensible, allowing users to attach custom generator functions and override built-in datasets to adapt random generation to specific contexts. Its method-chaining API enables sequential calls in a single expression, and locale-aware formatting is available for region-specific output like euro amounts.

Features

  • Random Identifier Generators - Generates strings of random characters with configurable length and an optional custom character pool.
  • Random Number Generator Seeding - Accepts an optional seed value to produce identical sequences of random values across multiple runs.
  • Seedable Generators - Accepts an optional seed to produce deterministic pseudo-random sequences for reproducibility.
  • Configurable Random Utilities - Generates random booleans, integers, floats, dates, and characters with configurable ranges and pools.
  • Random Data Utilities - Provides configurable random generation for booleans, integers, floats, dates, and more.
  • Random Data Generators - Generates random strings, numbers, names, and addresses for use in automated tests and prototypes.
  • Realistic Data Generators - Generates realistic random strings, numbers, names, and addresses for automated tests and prototypes.
  • Test Data Generators - Creates realistic random test data including names, addresses, and credit card numbers.
  • String and Character Generators - Generates random strings, characters, and letters with configurable pools alongside numeric values.
  • Unbiased Random Integer Generators - Returns whole numbers within a specified inclusive range, defaulting to the full JavaScript integer range.
  • Reproducible Randomizers - Uses a seeded Mersenne Twister to produce deterministic random sequences for reproducible tests.
  • Mersenne Twister Implementations - Uses a Mersenne Twister pseudo-random number generator for high-quality, reproducible random sequences.
  • Random Number Generation - Generates random integers and floats within specified ranges using a Mersenne Twister algorithm.
  • Random Number Generators - Returns true or false with a configurable likelihood, defaulting to a 50% chance of true.
  • Range-Bounded Random Generators - Produces random numbers within inclusive minimum and maximum bounds for integers, floats, and primes.
  • Character Randomization - Provides configurable character pools for generating random characters from alphabetic, alphanumeric, or symbol sets.
  • Synthetic Address Generators - Generates realistic synthetic street addresses, cities, and postal codes for geographic test data.
  • Collection Randomization Utilities - Selects a single random element from an array or array-like collection.
  • Email Address Generators - Creates random email addresses with realistic username and domain patterns for test data.
  • Custom Generator Extensions - Provides an extensibility API for attaching custom generator functions and overriding built-in datasets.
  • Random Date & Time Generators - Produces random dates within configurable ranges for test data generation.
  • Random Identifier Generators - Generates realistic random first names, last names, and full names for test data.
  • Random Sampling - Ships a method to pick random items or subsets from arrays for sampling workflows.
  • Credit Card Generators - Generates random credit card numbers that pass the Luhn algorithm, optionally specifying the card type.
  • Luhn Algorithm Validators - Generates credit card numbers that pass the Luhn checksum for realistic test data.
  • Random Value Generators - Produces random boolean values with configurable weighting for test inputs.
  • Subset Generators - Returns a random subset of elements from an array without replacement.
  • Randomized Selection - Selects a single random element from a provided array.
  • Number Utilities - Generating random numbers and strings.
  • Numeric Utilities - Generates random numbers and strings.

Star history

Star history chart for chancejs/chancejsStar history chart for chancejs/chancejs

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Chancejs

These projects share indexed features with Chancejs. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • brianvoe/gofakeitbrianvoe avatar

    brianvoe/gofakeit

    5,306View on GitHub↗

    gofakeit is a Go library for creating realistic synthetic datasets and populating Go structs with mock information. It functions as a deterministic data generator, allowing for seedable random number generation to ensure reproducible datasets for software testing. The project distinguishes itself by providing a mock data API server that exposes generation functions as HTTP endpoints and a synthetic dataset exporter for producing files in CSV, JSON, and XML formats. It also includes a command-line interface for generating mock data directly from the terminal. The library covers a wide array o

    Godatafakegenerator
    View on GitHub↗5,306
  • fzaninotto/fakerfzaninotto avatar

    fzaninotto/Faker

    26,674View on GitHub↗

    Faker is a PHP library for creating realistic synthetic data used for testing, prototyping, and populating database entities. It serves as a test data generator and localized mocking tool capable of producing synthetic names, addresses, and identifiers specific to various countries and languages. The library provides mechanisms to ensure data consistency and quality, including deterministic seeding to produce identical data sequences across executions and stateful uniqueness tracking to prevent duplicate values. It also supports probability-weighted optionality to simulate missing data and cu

    PHP
    View on GitHub↗26,674
  • factoryboy/factory_boyFactoryBoy avatar

    FactoryBoy/factory_boy

    3,799View on GitHub↗

    Factory Boy is a dynamic test fixture framework and data generation tool for Python. It serves as a replacement for static fixtures by providing a system to create complex Python objects and database models through programmable blueprints. The project differentiates itself by offering specialized integration with Object Relational Mappers to manage persistence within database sessions. It enables the creation of complex object hierarchies using sub-factories and recursive composition to resolve dependent related objects. The framework provides capabilities for synthesizing realistic random d

    Pythondjangofixtureshacktoberfest
    View on GitHub↗3,799
  • lk-geimfari/mimesislk-geimfari avatar

    lk-geimfari/mimesis

    4,818View on GitHub↗

    Mimesis is a Python synthetic data generator used to create realistic fake datasets and mock data for software testing and development. It functions as a schema-based dataset generator capable of producing structured records and relational datasets, while also serving as a production data anonymizer to replace sensitive information with synthetic values. The library distinguishes itself through comprehensive multilingual support, allowing for the generation of locale-specific information to simulate regional user profiles. It ensures reproducibility through deterministic data generation using

    Pythondatadataframedatascience
    View on GitHub↗4,818
Compare all 30 related projects→

Frequently asked questions

What does chancejs/chancejs do?

Chance is a JavaScript library for generating random data, designed to produce realistic test data for automated tests and prototypes. It uses a Mersenne Twister pseudo-random number generator that accepts an optional seed value, enabling reproducible sequences of random values across multiple runs.

What are the main features of chancejs/chancejs?

The main features of chancejs/chancejs are: Random Identifier Generators, Random Number Generator Seeding, Seedable Generators, Configurable Random Utilities, Random Data Utilities, Random Data Generators, Realistic Data Generators, Test Data Generators.

Which projects share features with chancejs/chancejs?

Projects with overlapping indexed features include: brianvoe/gofakeit — gofakeit is a Go library for creating realistic synthetic datasets and populating Go structs with mock information. It… fzaninotto/faker — Faker is a PHP library for creating realistic synthetic data used for testing, prototyping, and populating database… factoryboy/factory_boy — Factory Boy is a dynamic test fixture framework and data generation tool for Python. It serves as a replacement for… lk-geimfari/mimesis — Mimesis is a Python synthetic data generator used to create realistic fake datasets and mock data for software testing… fakerphp/faker — Faker is a PHP fake data generator and testing utility used to produce realistic randomized values for populating… dubzzz/fast-check — fast-check is a property-based testing framework and random data generator designed to verify software invariants by…