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.4013921051293283
Double r2 = randGaussian(); // r2 == -0.437458769549944
Double r3 = randGaussian(); // r3 == 1.4093637395153027