Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

d-513/js-random-stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Random strings and numbers and hex colors in nodejs

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors