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.1536108131522078
Double r2 = randGaussian(); // r2 == -0.3130993770834056
Double r3 = randGaussian(); // r3 == 0.9366250565430119