klyn.math.NDArray.randn
method
public static randn(shape as Tuple) as NDArray<T>:
Description
Creates a NDArray sampled from a normal-like distribution using a tuple shape.
a = NDArray<Double>.randn((2, 3))
print(a)
Parameters
  • shape Fixed-size tuple of dimensions.
Returns
A random NDArray with mean close to `0`.