USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Generate a deterministic unique string from a seed value
Produces a string of the given length by selecting characters from the supplied character set using the seed value as a deterministic offset. Useful for generating short, reproducible identifiers such as licence keys or activation codes. Unlike GenerateRandomString, the same seed always produces the same output.
| Parameter | Description |
|---|---|
| cmd | desired length of the output string (default 4) |
| Argument 0 | character set to draw from (leave blank for default alphanumeric set) |
| Argument 1 | numeric seed that drives character selection (default 1) |
| Argument 2 | true to reverse the resulting string, false to leave it as-is |
GenerateUniqueString "desired length of the output string (default 4)", "character set to draw from (leave blank for default alphanumeric set)", "numeric seed that drives character selection (default 1)", "true to reverse the resulting string, false to leave it as-is"