Group: | Random Variables |
See also: | cdfn pdfn randomize uniform |
Function: | normal | |
Description: | normal generates arrays up to eight dimensions of pseudo random variables with a standard normal distribution. the algorithm by box-muller is used. |
Usage: | z = normal (d1 {, ..., dn}) | |
Input: | ||
d1, ..., dn | scalar (number of elements in dimension 1 ... n) | |
Output: | ||
z | d1 x d2 x ... x dn matrix containing pseudo random variables with a standard normal distribution |
randomize(0) normal(2, 3)
Contents of rnorm [1,] -0.21293 1.9502 -1.4341 [2,] -1.0078 -1.3052 0.69812