randn | R Documentation |
Construct a matrix or multi-way array of normal random deviates.
randn(nrow = 1, ncol = 1, ..., mean = 0, sd = 1, atleast_2d = NULL)
nrow |
The desired number of rows. |
ncol |
The desired number of columns. |
... |
Further dimensions of the array. |
mean |
Mean for the normal distribution. ( |
sd |
Standard deviation for the normal distribution. ( |
atleast_2d |
Logical indicating whether or not to force column vectors
to have a second dimension equal to one. Defaults to |
A matrix or array of pseudorandom numbers.
rand()
, randi()
, rnorm()
.
randn(100, 100) # 100 by 100 matrix of standard normal random variates
randn(2, 3, mean = 10, sd = 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.