cupynumeric.random.randn#
- cupynumeric.random.randn(d0, d1, ..., dn)#
Return a sample (or samples) from the “standard normal” distribution.
If positive int_like arguments are provided, randn generates an array of shape
(d0, d1, ..., dn)
, filled with random floats sampled from a univariate “normal” (Gaussian) distribution of mean 0 and variance 1. A single float randomly sampled from the distribution is returned if no argument is provided.- Parameters:
d0 (int, optional) – The dimensions of the returned array, must be non-negative. If no argument is given a single float is returned.
d1 (int, optional) – The dimensions of the returned array, must be non-negative. If no argument is given a single float is returned.
... (int, optional) – The dimensions of the returned array, must be non-negative. If no argument is given a single float is returned.
dn (int, optional) – The dimensions of the returned array, must be non-negative. If no argument is given a single float is returned.
- Returns:
Z – A
(d0, d1, ..., dn)
-shaped array of floating-point samples from the standard normal distribution, or a single such float if no parameters were supplied.- Return type:
See also
- Availability:
Multiple GPUs, Multiple CPUs