Gaussian random integer

The Gaussian random integer policy generates a random integer. The generated number is based on a Gaussian, bell-shaped curve.

In a Gaussian distribution, numbers near the mean are more likely to be selected than numbers outside the mean, as opposed to a uniform distribution of random numbers. In a uniform distribution of random numbers from 1 to 10, the number of ones generated are roughly equal to the number of fives or tens generated. In a Gaussian distribution with a mean of 6 and a standard deviation of 2, more fives and sevens are generated than threes and nines.

JavaScript policy syntax

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

ScrambleMask.gaussianRandomInteger(<arg:mean>, <arg:standardDeviation>)

For example, to generate values based on a mean of 100 and a standard deviation of 20, enter the following syntax:

ScrambleMask.gaussianRandomInteger('100', '20')

Argument Description
mean The mean value for the Gaussian distribution.
standardDeviation The standard deviation for the Gaussian distribution.