Skip to main content

Random number

Generate a random integer. The range is [from, to): the minimum value is inclusive and the maximum value is exclusive — the generated number is never equal to the maximum.

Parameters

Minimum valuerequired

The minimum value of the random number (inclusive).

Maximum valuerequired

The upper bound of the random number (exclusive — never generated). Must be greater than the minimum value.

Unique per file

If checked, the function will generate a unique random number per file, instead of a new random number for each execution in the same file (for example when a mapping is executed on each line of a document).

Input

Any

To connect to the execution flow if the random number is not unique per file.

Output

Number
The random generated number.