String
Library
Updated 2 months ago ·
v1.3.7i
Shared Module — extends the global string table
string.random
Generates a random string based on a pattern.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pattern | string | yes | Pattern string (see characters below) |
| length | integer | no | Pad or truncate result to this length |
Pattern Characters
| Char | Generates |
|---|---|
1 | Random digit (0–9) |
A | Random uppercase letter (A–Z) |
a | Random lowercase letter (a–z) |
. | Random alphanumeric character |
^ | Next character is treated as a literal |
| anything else | Passed through as-is |
Examples
Was this page helpful?
This page was last updated on 12 March 2026