1.0.5 • Published 11 months ago
variable-randomizer v1.0.5
- 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