React Randomizer
https://www.npmjs.com/package/react-randomizer
Install
npm install --save react-randomizer
Information
Randomizer.randomNumber(num1, num2)
: generates a random number between num1
and num2
Randomizer.randomizeArray(arr)
: shuffles the input array in a random order
Randomizer.rollDice()
: gives you a random number between 2-12(probability is consistent with rolling two dice)
Example Use Cases
; Randomizer // => generates a random number between 1 and 100 Randomizer // => [5,3,2,4,1] Randomizer // => generates a random number between 2-12