Uniform random long in range

The uniform random long in range policy generates a random long integer within a specified range. The generated number is based on a uniform distribution.

In a uniform distribution of random numbers from 1 to 10, the number of ones generated is roughly equal to the number of fives or tens generated.

JavaScript policy syntax

This policy is available with the function ScrambleMask.uniformRandomLongInRange().

ScrambleMask.uniformRandomLongInRange(<arg:rangeLowerBound>, <arg:rangeUpperBound>)

For example, to generate a value from 2000000000 to 3000000000, enter the following syntax:

ScrambleMask.uniformRandomLongInRange('2000000000', '3000000000')

Argument Description
rangeLowerBound) The start of the range. The minimum value generated.
rangeUpperBound The end of the range. The maximum value generated.