klyn.math.NDArray.randint
method
public static randint(min as Int, max as Int, shape as IList<UInt>) as NDArray<T>:
Description

Creates a new NDArray with random integers.

Parameters
ParameterDescription
minThe minimum value (inclusive).
maxThe maximum value (inclusive).
shapeThe shape of the array.
Returns

A new NDArray with random integers.

Example
a = NDArray<Int>.randint(10, 20, [2u, 3u])
print(a)  # Example: [[13, 18, 10], [20, 11, 16]]