klyn.math.NDArray.random
method
public static random(shape as IList<Int>) as NDArray<T>:
Description

Creates a NDArray with random values in [0, 1) using read-only shape dimensions.

Parameters
  • shape Shape dimensions.
Returns

A random NDArray. klyn a = NDArray<Double>.random([2, 2]) print(a)