klyn.math.NDArray.randn
method
public static randn(shape as IList<UInt>) as NDArray<T>:
Description
Creates a new NDArray with random floating-point numbers from a normal distribution. Uses a CLT-based approximation with mean 0 and standard deviation 1.
a = NDArray<Double>.randn([3u, 3u])
print(a)
Parameters
  • shape The shape of the array.
Returns
A new NDArray with random floating-point numbers from a normal distribution. ``` a = NDArray<Double>.randn([3u, 3u]) print(a) ```