variable-randomizer
v1.0.5
Published
Randomizing stuff made easier.
Downloads
7
Maintainers
Readme
- randomizer 101 -
rArray - Randomizes and outputs a random value from your array
Example:
rArray({ array: users }, async user => console.log(user) ) - This will console log a random user from the users array.
rString - Gives you a random string, good for IDs and passwords
Example:
rString({ length: 100 }, async password => console.log(password) ) - This will console log a random string with 100 characters
Example 2:
const customLetters = ['a', 'b', 'c'] rString({ length: 100, customLetters: customLetters }, async password => console.log(password) ) - This will console log a random string with 100 but will only include letters from the customLetters array