Random IDs
When you need to generate random characters, you can use random IDs from the Standard package. If you need a guarantee that the IDs are unique, then consider unique IDs instead.
By default, a random ID looks like this: VZ3Y-69L2-QE2G. There
are over seven quadrillion combinations of letters and numbers. Click the
refresh button to generate a different ID.
You can use Random IDs anywhere you see the icon, such as the Default Value of any
field in the admin panel, under Advanced. To insert a random ID, use {random}.
Random IDs can be configured to create different patterns by specifying a format as a parameter. For example:
{random:AAAA} will generate four uppercase letters, such as
XZXS or FZGH, making up almost half a million
possibilities.
{random:AAA-NN} will generate three uppercase letters followed
by a dash and two numbers from 0 to 9, such as LRW-41 or MWQ-72, for a total of almost two million possibilities.
Format
A | uppercase letter |
|---|---|
| a | lowercase letter |
| B | uppercase or lowercase letter |
| N | digit |
| C | uppercase letter or digit |
| c | lowercase letter or digit |
| D | uppercase letter, lowercase letter or digit |
| X | upper hexadecimal digit |
| x | lowercase hexadecimal digit |
| P | dissimilar uppercase letter |
| p | dissimilar lowercase letter |
| Q | dissimilar uppercase or lowercase letter |
| M | dissimilar digit |
| I | dissimilar uppercase letter or digit |
| i | dissimilar lowercase letter or digit |
| J | dissimilar uppercase letter, lowercase letter or digit |
| \ | escape next character |
Dissimilar characters are characters that look different from other characters. For example, I (the uppercase letter I), l (the lowercase letter L), and 1 (the number one) are not included, because they look very similar to each other.
Any character that follows a \ (backslash) will be escaped. For example,
the format \NN will generate an N followed by a random digit, such
as N5 or N7.