public static randint(min as Int, max as Int, shape as Tuple) as NDArray<T>:
Creates a NDArray with random integers in [min, max] using a tuple shape.
a = NDArray<Int>.randint(1, 3, (2, 2)) print(a)
| Parameter | Description |
|---|---|
min | Lower bound (inclusive). |
max | Upper bound (inclusive). |
shape | Fixed-size tuple of dimensions. |
A random NDArray.