mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-08 12:05:58 +08:00
544 B
544 B
node
It can also be used in Node.js
npm install chance
then in your app
// Load Chance
var Chance = require('chance');
// Instantiate Chance so it can be used
var chance = new Chance();
// Use Chance here.
var my_random_string = chance.string();
As of version 0.5.5, the following is also offered as a convenience for getting an instance of Chance
// Load and instantiate Chance
var chance = require('chance').Chance();
// Use Chance here.
var my_random_string = chance.string();