Back to Core Functions
randn
Normally distributed random numbers
Syntax
R = randn(n) R = randn(m, n)
Description
Creates an array of random numbers drawn from the standard normal distribution (mean 0, variance 1).
Parameters
| Name | Description |
|---|---|
| m | Number of rows |
| n(optional) | Number of columns |
Returns
NDArray of normally distributed random values
Examples
Try It
>> randn(2, 3)