public static random(notnull shape as IList<Int>) as NDArray<T>
Creates a NDArray with random values in [0, 1) using read-only shape dimensions.
| Parameter | Description |
|---|---|
shape | Shape dimensions. |
A random NDArray.
a = NDArray<Double>.random([2, 2]) print(a)