cirnornd
v0.2.0
Published
This is a module for simplifying math.floor() and stuff like that
Downloads
1
Maintainers
Readme
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)}`);