Rands Function

Description:
A text value containing a specified number of evenly distributed random characters.
The domain of each character is:
  • ALPHA
    : any alpha character
  • NUMERIC
    : any numeric character
  • LOWER
    : any lowercase letter character
  • UPPER
    : any uppercase letter character
  • ALPHANUMERIC
    : any alpha or numeric character
  • LOWERNUMERIC
    : any lowercase letter or numeric character
  • UPPERNUMERIC
    : any uppercase letter or numeric character
Returns:
Text
Parameters:
Parameter
Data Type
Description
1
Whole Number
The number of characters in the randomly generated text.
2
Text
The character domain.
Example:
When using functions inside a field, remember the field brackets:
{Rands(5, "LOWERNUMERIC")}
Expression
Result
Length( Rands(8,"ALPHA") )
8

Related content