Function that returns a random and unique string and can be customised.
How to use:
/* * without options */ random(); /* * without options */ random(options)
{ length: 16, // length type: "alphabel", // "aphabet" or "numbers" case :"upper" // "lower" or "upper" }
option
Required
Type
Default
Description
length
No
integer
16
length of the returned string.
type
string
random
"aphabet" or "numbers"
case
"lower" or "upper"
/* * string */ "G0JU4ZVPBZK9ASQ2"
Last updated 6 years ago