cunumeric.random.rand#

cunumeric.random.rand(d0, d1, ..., dn)#

Random values in a given shape.

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

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:

out – Random values.

Return type:

ndarray, shape (d0, d1, ..., dn)

Availability:

Multiple GPUs, Multiple CPUs