# Module quickrand_normal

- Description
- Function Index
- Function Details

### Quick Normal Distribution Random Number Generation

.

Copyright © 2017 Michael Truog

Version: 1.7.2 May 26 2021 18:14:15 ------------------------------------------------------------------------

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### Quick Normal Distribution Random Number Generation

## Function Index

box_muller/2 | #### Box-Muller transformation for generating Gaussian noise. Has numerical stability problems when X1 is very close to zero.

## Function Details

### box_muller/2

`box_muller(Mean::number(), StdDev::number()) -> {Result1::float(), Result2::float()}`

#### Box-Muller transformation for generating Gaussian noise.

Has numerical stability problems when X1 is very close to zero. This is a serious problem for stochastic modelling that is generating millions of numbers. If the result is used with added noise (e.g., creating a process sleep value) then it isn't a problem.

Generated by EDoc