Skip to main content

randn

randn(
@mean 0
@stdev 1
) -> int/float

Generates a normally distributed random floating point number, using the Box-Muller transform.


Arguments

  • @mean [int/float]: Mean. (default: 0).
  • @stdev [int/float/null]: Standard deviation. (default: 1).

Output

Normally distributed, random floating point number [int/float]


Usage

setseed(13);
for $i in 1...10 collect print(randn(0, 1))