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.2511028791933675
Double r2 = randGaussian(); // r2 == 1.1169988778980904
Double r3 = randGaussian(); // r3 == -1.145307019576322