0.2.0 • Published 6 years ago
cirnornd v0.2.0
Cirnornd.js
This nodejs module makes getting random integers/strings way easier!
Installation
npm install cirnornd
Docs
.randomInt(min, max)
returns a random integer inbetween min and max (both inclusive)
.randomString(lenght, symbols = false, numbers = true, upperCase = true, lowerCase = true)
returns a random string of a defined lenghth, it can include symbols, numbers, uppercase letters and lowercase letter, by default all of them are included excluding symbols.
Example of usage:
const cirno = require('cirnornd');
console.log(`Random string: ${cirno.randomString(20, true)}\nRandom Number: ${cirno.randomInt(0, 100)}`);