dpnp.random.RandomState.standard_normal
method
- RandomState.standard_normal(size=None, usm_type='device')[source]
Draw samples from a standard Normal distribution
(mean=0, stdev=1)
.For full documentation refer to
numpy.random.RandomState.standard_normal
.- Parameters:
usm_type ({"device", "shared", "host"}, optional) -- The type of SYCL USM allocation for the output array.
- Returns:
out -- A floating-point array of shape size of drawn samples, or a single sample if size was not specified. Output array data type is
dpnp.float64
if device supports it, ordpnp.float32
otherwise.- Return type:
dpnp.ndarray
Examples
>>> s = dpnp.random.RandomState().standard_normal(size=(3, 5)) >>> print(s) [[-0.84401099 -1.81715362 -0.54465213 0.18557831 0.28352814] [ 0.67718303 1.11570901 1.21968665 -1.18236388 0.08156915] [ 0.21941987 -1.24544512 0.63522211 -0.673174 0. ]]