public static randint(min as Int, max as Int, shape as IList<Int>) as NDArray<T>:
Creates a NDArray with random integers in [min, max] using read-only shape dimensions.
| Parameter | Description |
|---|---|
min | Lower bound (inclusive). |
max | Upper bound (inclusive). |
shape | Shape dimensions. |
A random NDArray.
a = NDArray<Int>.randint(0, 5, [2, 3]) print(a)