klyn.math.NDArray.randn
method
public static randn(shape as IList<Int>) as NDArray<T>:
Description
Creates a NDArray sampled from a normal-like distribution using read-only shape dimensions.
a = NDArray<Double>.randn([2, 3])
print(a)
Parameters
  • shape Shape dimensions.
Returns
A random NDArray with mean close to `0`. ```klyn a = NDArray<Double>.randn([2, 3]) print(a) ```