Chance
Minimalist JavaScript random-generator helper built on a Mersenne Twister implementation, producing repeatable seeded random numbers, characters, strings, names, addresses, dice and other values for automated tests and any workflow that needs deterministic randomness, usable in the browser and Node.js.
Chance at chancejs.com is a free MIT JavaScript random helper on a Mersenne Twister, repeatable seeded numbers, characters, strings, names, addresses and dice for automated tests, browser and Node.js, chance.js 95KB dev and chance.min.js 55KB 17KB gz production, pseudo-random and not for cryptographic use, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Chance free?
Chance: Chance is open-source software released under the developer- and business-friendly MIT License, distributed as chance.js for development at 95KB uncompressed and chance.min.js for production at 55KB, 17KB gzipped, and loadable directly from the documentation site in the browser console. It generates random numbers, characters, strings, names, addresses, dice and similar values on top of a Mersenne Twister, with optional seed for repeatable output. The project notes its output is pseudo-random and should not be used for cryptographic applications requiring true randomness; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Chance free?
The code is free to self-host, but a hosted plan from the vendor may not be. Chance publishes its source, so cost depends on where you run it.
How much does Chance cost?
Chance is open-source software released under the developer- and business-friendly MIT License, distributed as chance.js for development at 95KB uncompressed and chance.min.js for production at 55KB, 17KB gzipped, and loadable directly from the documentation site in the browser console. It generates random numbers, characters, strings, names, addresses, dice and similar values on top of a Mersenne Twister, with optional seed for repeatable output. The project notes its output is pseudo-random and should not be used for cryptographic applications requiring true randomness; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Chance's current pricing?
On Chance's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Chance?
Call Chance methods to build random strings, numbers, names or addresses inside test fixtures and generators; seeding the Mersenne Twister makes the sequence reproducible, which keeps flaky random data from breaking deterministic test runs.
How does pricing work?
The library installs free under MIT with no purchase fee or seat count; embed the browser script or Node package in your own project, and do not substitute it for a cryptographic random source.
How does Chance compare with other tools in Dev Workflow & Productivity?
Chance is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Chance | Open source | Chance is open-source software released under the developer- and business-friendly MIT License, distributed as chance.js for development at 95KB uncompressed and chance.min.js for production at 55KB, 17KB gzipped, and loadable directly from the documentation site in the browser console. It generates random numbers, characters, strings, names, addresses, dice and similar values on top of a Mersenne Twister, with optional seed for repeatable output. The project notes its output is pseudo-random and should not be used for cryptographic applications requiring true randomness; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Faker.js | Open source | Faker.js (@faker-js/faker) is free open-source software released under the MIT License, installed as a dev dependency with npm install --save-dev @faker-js/faker. It runs in the browser and Node.js, ships TypeScript definitions, and supports person, location, date, finance, commerce, hacker, number and string modules plus over 70 locales; the main instance defaults to English, and locale-specific instances or custom locale combinations can be imported. Since v11.0 it offers both standalone function imports for small bundle sizes and the classic tree import, and faker.helpers.fake composes methods with a mustache string format. No paid commercial edition or per-seat license is sold by the project; generated values may coincidentally look valid and must not be used to contact real people from test setups (data as of Nov 22, 2026). | Nov 22, 2026 |
| JSON Schema Faker | Open source | json-schema-faker is free open-source software under the MIT License, installed from npm or bun, with zero production dependencies and a TypeScript runtime for Node-like or Bun environments. It supports JSON Schema 2019-09 and 2020-12, all standard types, composition keywords allOf, anyOf, oneOf, not and if/then/else, dependentSchemas and dependentRequired, and $ref resolution with cycle detection, configurable recursion depth and an HTTP or file remote resolver. Built-in format generators cover date-time, email, uri, hostname, IPv4, IPv6, UUID and JSON pointer, with regex pattern generation via an AST-based string generator and autoIncrement and template keywords; faker and Chance extensions can be plugged in for realistic values, and custom formats or keywords can be registered. A CLI (jsf) and standalone binaries are published on GitHub Releases; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Chance's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: Chance is open-source software released under the developer- and business-friendly MIT License, distributed as chance.js for development at 95KB uncompressed and chance.min.js for production at 55KB, 17KB gzipped, and loadable directly from the documentation site in the browser console. It generates random numbers, characters, strings, names, addresses, dice and similar values on top of a Mersenne Twister, with optional seed for repeatable output. The project notes its output is pseudo-random and should not be used for cryptographic applications requiring true randomness; no paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Faker.js
TypeScript and JavaScript fake-data library for the browser and Node.js that generates names, genders, bios, job titles, addresses, phone numbers, dates, finance details, commerce items, numbers and strings across 70+ locales, with seeded reproducible output, mustache templates and helper methods for building arrays of test objects.
JSON Schema Faker
TypeScript generator that produces valid sample JSON from JSON Schema definitions, supporting JSON Schema 2019-09 and 2020-12, composition keywords, $ref resolution with cycle detection, regex patterns, built-in formats, seeded deterministic output and optional faker or Chance extensions for realistic values, with a CLI and standalone binaries.
Tool Information
- Official Websitechancejs.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
