Skip to main content

Random Numeric

Overview

Use the random numeric transform to generate a random number of any length.

Transform structure

The random numeric transform only requires the standard type and name attributes:

{
"type": "randomNumeric",
"name": "Random Numeric Transform"
}

Top-level properties (required)

  • type string (required)
    Must be set to randomNumeric.

  • name string (required)
    The name of the transform as it will appear in the UI's dropdown menus.

  • requiresPeriodicRefresh boolean (optional)
    Whether the transform logic should be reevaluated every evening as part of the identity refresh process. Default is false.

Attributes

The random numeric transform uses the following structure:

{
"type": "randomNumeric",
"name": "Transform Name",
"attributes": {
"length": "10"
}
}

attributes (optional)

The attributes object contains the length configuration.

Optional

  • length string (optional)
    An integer value specifying the required size/number of digits for the random number.
    • Must be a positive number
    • Default is 10
    • Maximum allowable value is 450 characters

Examples

No explicit length is provided, so this transform generates a 10-digit random integer, such as "2334776774".

Transform request body:

{
"type": "randomNumeric",
"name": "Random Numeric Transform"
}

 

This transform generates a 6-digit random integer, such as "759931".

Transform request body:

{
"attributes": {
"length": "6"
},
"type": "randomNumeric",
"name": "Random Numeric Transform"
}