README
js-random-stuff
Generate random numbers and strings in node
Instalation:
npm install --save dada513/js-random-stuff
Examples:
const random = require("js-random-stuff");
console.log(random.genNumber(1, 10)); // returns a random number between 1 and 10
console.log(random.genNumbers(10, 1, 10)); // returns an array with 10 random numbers between 1 and 10
console.log(random.genString(10)); // returns a random string with 10 characters
console.log(random.genStrings(5, 10)); // returns an array of 5 random strings with 10 characters
console.log(random.genHex()); // returns a random hex color
Documentation
See api docs