Skip to content
Reference > Methods

randGaussian()

Definition

Double randGaussian()

Description

Returns a random, Gaussian-distributed Double with a mean of 0.0 and a standard deviation of 1, Note: this random is not secure.

Examples

1
2
3
Double r1 = randGaussian(); // r1 == 0.10241042019053563
Double r2 = randGaussian(); // r2 == 2.030922502536599
Double r3 = randGaussian(); // r3 == -0.8235746229857058