nextGaussian

fun nextGaussian(): Double

Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0.

Return

a gaussian distributed number

fun nextGaussian(min: Int, max: Int, sd: Double): Int

Returns a pseudo-random gaussian distributed number between the given min and max with the provided standard deviation.

Return

a gaussian distributed number between the provided bounds

Parameters

min

the minimum bound

max

the maximum bound

sd

the standard deviation from the mean

fun nextGaussian(min: Int, max: Int, mean: Int, sd: Double): Int

Returns a pseudo-random gaussian distributed number between the given min and max with the provided standard deviation.

Return

a gaussian distributed number between the provided bounds

Parameters

min

the minimum bound

max

the maximum bound

mean

the mean value

sd

the standard deviation from the mean