The Random field generates a random string once per record, drawn from the character sets you turn on. The value is generated for you, so submitters never type it.
When to use it
Reach for Random when you want an unpredictable token on each record:- Access codes, opaque references, or sample identifiers.
- A short random segment to fold into a Concatenation field.
- A value where a sequential number would be too easy to guess and a Terminus ID’s fixed shape is not what you want.
How it works
The first time you submit a record, the field generates a string of Length characters using the character sets you enabled, then keeps that value for the life of the record. It is not re-rolled when you edit or re-save the record later.Settings reference
At least one of Include Numbers, Include Lowercase, and Include Uppercase must stay on, so the editor locks the last one that is on.
Example
An Access Code field on a Passes taxonomy:
A new record might get
K7P2QXM9: eight characters of uppercase letters and digits. That value is generated once, when you first submit the record, and stays the same from then on.
Gotchas
- Random is not unique. There is no collision check, and a short Length with few character sets repeats more often. For uniqueness, use Terminus ID or Auto Number.
Related
- Fields
- Auto Number field: sequential, guaranteed-distinct numbers.
- Terminus ID field: a system-unique identifier.
- Computed fields