public static randint(min as Int, max as Int, size as Int) as NDArray<T>:
Creates a 1D NDArray with random integers in [min, max].
| Parameter | Description |
|---|---|
min | Lower bound (inclusive). |
max | Upper bound (inclusive). |
size | Number of elements. |
A random 1D NDArray.
a = NDArray<Int>.randint(10, 20, 8) print(a)