Random string Javascript object with specified types of the output
The generate(length, type) takes two optional parameters:
length
: the desired length ,int, of the random string.
type
: the type of generated string, string, and it take one of the following string values:
int: numbers
lwr: Lowercase
upr: uppercase
uln: Uppercase, LowerCase and Numbers
hex: Hexadecimal
mix: Mix of Special Characters and alphanumerical.
Notice: The default value and the minimum of the length parameter is 4. The default value of type parameter is mix