Function returns a random string of a given length, optionally selected from a custom character set.
Parameter | Type | Description |
---|
length | int | Length of the random string |
charset (optional) | string | A customized list of characters |
Returns
Type | Description |
---|
any | Random item(s) from the array of characters |
Example