Chance - Random generator helper for JavaScript
Chance - Random generator helper for JavaScript
Homepage: http://chancejs.com
Many more details on http://chancejs.com but this single library can generate random numbers, characters, strings, names, addresses, dice, and pretty much anything else.
It includes the basic building blocks for all these items and is built on top of a Mersenne Twister so it can generate these things with repeatability, if desired.
See the full docs for details on installation and usage.
Or view all of the dependents on npm
Know a library that uses Chance that isn't here? Update the README and submit a PR!
https://www.victorquinn.com @victorquinn
Please feel free to reach out to me if you have any questions or suggestions.
THANK YOU!
Be a part of this project! You can run the test using the following.
Note: Make sure you have Yarn installed globally
yarnyarn testThis project is licensed under the MIT License so feel free to hack away :)
Proudly written in Washington, D.C.
Seeded date generator shifts one year at new year's
new feat: pick default seed from ENV variable
web worker error: chance is not defined
Add ability to generate random subdomains
Feature Request: chance.gitCommit() for Random Commit Messages
Add person.cnpj
Support Dutch phone number formatting
Support for 64-bit mac_address
Make date generators locale agnostic
why packages in Chance ts-2.0 are exposing js rather than ts files