dpnp.random.rand

dpnp.random.rand(d0, *dn)[source]

Create an array of the given shape and populate it with random samples from a uniform distribution over [0, 1).

For full documentation refer to numpy.random.rand.

Limitations

Output array data type is dpnp.float64.

Examples

>>> s = dpnp.random.rand(2, 4)