public static random(notnull shape as Tuple) as NDArray<T>
Creates a NDArray with random values in [0, 1) using a tuple shape.
a = NDArray<Double>.random((2, 2)) print(a)
| Parameter | Description |
|---|---|
shape | Fixed-size tuple of dimensions. |
A random NDArray.