public static randn(shape as IList<UInt>) as NDArray<T>:
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.
| Parameter | Description |
|---|---|
shape | The shape of the array. |
A new NDArray with random floating-point numbers from a normal distribution.
a = NDArray<Double>.randn([3u, 3u]) print(a)