public static randn(notnull shape as Tuple) as NDArray<T>
Creates a NDArray sampled from a standard normal distribution using a tuple shape.
a = NDArray<Double>.randn((2, 3)) print(a)
| Parameter | Description |
|---|---|
shape | Fixed-size tuple of dimensions. |
A random NDArray with mean close to 0.