math.random.gauss

Syntax

a := math.random.gauss(<i>)

Get one or more Gaussian random values.

The value is drawn from the Gaussian distribution with mean 0.0 and standard deviation 1.0.

If no arguments are provided then a single floating point value is returned, otherwise a list of i values is returned.

The standard deviation and mean of the value(s) may be modified by multiplying the returned value(s) by a factor and adding an offset.

Returns:

a - One or more Gaussian random numbers.

Arguments:

i - An optional integer indicatint the number of random numbers to generate.