@shinigami_dev/randomizer
v1.0.6
Published
A package to randomize anything, includes many options on how to randomize.
Downloads
3
Readme
Usage
Randomizer
const { randomize } = require('@shinigami_dev/randomizer'); //Require function.
console.log(randomize(String)); //Console log the randomized string.
- Intakes a String, Returns a String.
arrayPick
const { arrayPick } = require('@shinigami_dev/randomizer'); //Require function.
console.log(arrayPick(Array)); //Console log the random item from the array.
- Intakes an Array, Returns a String.
randomNumber
const { numberPick } = require('@shinigami_dev/randomizer'); //Require function.
console.log(numberPick()); //Console log any random number.
console.log(numberPick(Integer)); //Console log a random number that is <Integer> digits long.
- Optional
max
parameter intakes a Number, Returns a Number.