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

Accepts 64-bit signed shape dimensions without truncation.

Parameters
ParameterDescription
shapeNon-negative dimensions in row-major order.
minInclusive lower bound.
maxInclusive upper bound.
Returns

The same result as the corresponding 32-bit shape overload.

Throws
  • NullException if shape is null at runtime; statically null arguments are rejected with TypeError.
Example
values = NDArray<Double>.randint(1, 6, [2l, 3l])
print(values.shape)