Utilizes the Box-Muller transformation approach to generate the requested number of random samples from a normal distribution of the specified mean and standard deviation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | mu |
The mean of the distribution. |
||
| real(kind=real64), | intent(in) | :: | sigma |
The standard deviation of the distribution. |
||
| integer(kind=int32), | intent(in) | :: | n |
The number of random samples to generate. |
An N-element array containing the values.