Skip to main content
System
Random Integer
int64
code reference

Definition

The random integer transformer generates a random integer.

For example: 6782

By default, the random int transformer generates an integer of 4 digits long.

Configurations

Depending on your validations, you may want to configure the output integer. The random integer transformer has the following configurations:

NameDescriptionDefaultExample InputExample Output
Preserve LengthPreserves the length of the input integer to the output integer.false1233478223
Integer LengthSpecifies how many digits you want the integer to be. This has a max of 18 digits. 472782736

Examples

There are several ways you can mix-and-match configurations to get different potential random integer formats. Here are some possible combinations:

PreserveLengthInteger LengthExample InputExample Output
false58724223324
trueN/A91836721
falseN/A515419