Chance.js
6.4#6 in test data generation toolsFree planFree planWebAPI
Visit| Fact | Chance.js | RandomUser |
|---|---|---|
| Browser use | In a browser, Chance can expose a global `chance` instance, and users can also create multiple instances. | The documentation shows calling the API with AJAX and provides a jQuery example. |
| Founded | 2013 | 2013 |
| Purpose | Chance generates pseudo-random strings, numbers, and other values for automated tests and other uses that need random data. | The API generates random user data for application testing. |
Chance.js suits developers who need generated sample data for automated tests, including names and addresses. It is available for browser and Node.js use, with a command-line package also documented.
RandomUser suits developers who need synthetic user records for application testing and want control over fields, formats, or request parameters. The design extensions may also interest users working in Photoshop or Sketch, with stated availability limitations.