Skip to content
SPECIFICTION
Get listed

Chance.js vs RandomUser

Chance.js

chancejs.com

RandomUser

randomuser.me

Side by side

FigureChance.jsRandomUser
Price fromFreeFree
Free planYesYes
Free trial——
Open source—Yes
WebYesYes
APIYesYes
Self-hosted—Yes
Plans published12
Spec score · Test Data Generation Tools8.3 (#2)8.3 (#3)
Browser useIn 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.
Founded20132013
PurposeChance 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.

Plans

Chance.js

  • Chance.jsFree

Chance.js pricing →

RandomUser

  • Free Random User Generator APIFree
  • Random User Generator APIFree

RandomUser pricing →

In their own words

Chance.js

Chance.js is a free, MIT-licensed JavaScript library for generating pseudorandom data used in automated tests and other applications needing sample values. Generators cover basic values, text, people, mobile identifiers, web data, locations, dates, finance, helpers, and miscellaneous categories. Developers can install it with npm for Node.js, load it in a browser, or use the separate chance-cli package from the command line. Browser users may create a global instance or instantiate several instances. Supplying a seed makes output repeatable; instances given the same seed can produce the same sequence. Integer generation accepts inclusive minimum and maximum bounds, and the unique() helper builds arrays without repeated generated items. The documented name generator supports English and Italian nationality options. The site lists chance.js at 95KB uncompressed and chance.min.js at 55KB, or 17KB gzipped. Chance is not intended for cryptographic applications requiring true randomness. The site credits Victor Quinn as its writer.

Visit chancejs.com

RandomUser

RandomUser is a free, open-source API that generates synthetic user records for application testing. Results are available as JSON, PrettyJSON, CSV, YAML, or XML, with fields including names, locations, emails, login details, birth and registration information, phone numbers, photos, and nationality. Requests can filter by gender or nationality, set a seed, paginate results, and include or exclude fields. Password generation supports selectable character sets and configurable length, with a default range of 8–64 characters. The API uses its latest version by default, while callers can request a specific version such as 1.4. Documentation demonstrates browser requests with AJAX and jQuery. The service is available through both web and API access, with up to 5,000 generated users per request. A free Photoshop extension has a CC 2017 limitation, and the Sketch extension remains in development.

Visit randomuser.me