Random values in a given shape.

Create an array of the given shape and propagate it with random samples from a uniform
distribution over [0, 1).
Parameters:d1, .., dn (d0,) – (int) optional. The dimensions of the returned array, should all be positive. If no argument is given a single Python float is returned.
Returns:Random values array.


>>> random.rand(3,2)
array([[0.4696520873015779, 0.894834387530255]
      [0.032558348504158174, 0.23798858170392023]
      [0.3416176575753934, 0.8225067919346076]])