public static randn(notnull shape as IList<UInt>) as NDArray<T>
Creates a new NDArray with random floating-point numbers from a normal distribution.
Uses the Box-Muller transform 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([3ul, 3ul]) print(a)