Back to Core Functions
rand
Uniformly distributed random numbers
Syntax
R = rand(n) R = rand(m, n)
Description
Creates an array of uniformly distributed random numbers in the interval (0, 1).
Parameters
| Name | Description |
|---|---|
| m | Number of rows |
| n(optional) | Number of columns |
Returns
NDArray of random values in (0, 1)
Examples
Try It
>> rand(2, 3)