@tempots/std
randomStringSequence() function
Returns a random sampling of the specified length from the seed string.
Signature:
randomStringSequence: (alphabet: string, length: number) => string
Parameters
Parameter |
Type |
Description |
---|---|---|
alphabet |
string |
The seed string to sample from. |
length |
number |
The length of the random string to generate. |
Returns: string
The random string.