public static randn(shape as Tuple) as NDArray<T>:
Creates a NDArray sampled from a normal-like 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.