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 == 1.0110572866791774
Double r2 = randGaussian(); // r2 == -0.7143989433996424
Double r3 = randGaussian(); // r3 == -0.43332106070732884