dpnp.random.uniform
- dpnp.random.uniform(low=0.0, high=1.0, size=None)[source]
Draw samples from a uniform distribution.
For full documentation refer to
numpy.random.uniform.Limitations
Parameters
lowandhighare supported as scalar. Otherwise,numpy.random.uniform(low, high, size)samples are drawn. Output array data type isdpnp.float64.Examples
Draw samples from the distribution: >>> low, high = 0, 0.1 # low and high >>> s = dpnp.random.uniform(low, high, 10000)
See also
dpnp.random.randomFloats uniformly distributed over
[0, 1).