klyn.math.NDArray.random
method
public static random(shape as IList<UInt>) as NDArray<T>:
DescriptionCreates a new NDArray with random values in [0, 1).
a = NDArray<Double>.random([2u, 2u])
print(a) # Example: [[0.12, 0.98], [0.47, 0.31]]
ReturnsA new NDArray with random values. ``` a = NDArray<Double>.random([2u, 2u]) print(a) # Example: [[0.12, 0.98], [0.47, 0.31]] ```