klyn.math.NDArray.randint
method

    public static randint(min as Int, max as Int, size as Int) as NDArray<T>:

Description

Creates a 1D NDArray with random integers in `[min, max]`.

Parameters

Parameter | Description
--- | ---
`min` | Lower bound (inclusive).
`max` | Upper bound (inclusive).
`size` | Number of elements.

Returns

A random 1D NDArray.

Example

    a = NDArray<Int>.randint(10, 20, 8)
    print(a)