Overview
>
klyn.math
>
NDArray
>
random
Overview
Index
Tree
Deprecated
klyn.math.NDArray.random
method
public static random(shape as Tuple) as NDArray<T>:
Description
Creates a NDArray with random values in `[0, 1)` using a tuple shape.
a = NDArray<Double>.random((2, 2)) print(a)
Parameters
shape Fixed-size tuple of dimensions.
Returns
A random NDArray.