iarray.random.uniform#

iarray.random.uniform(shape: Sequence, low: float = 0.0, high: float = 1.0, cfg: Optional[Config] = None, **kwargs) IArray#

Draw samples from a uniform distribution.

The cfg and kwargs parameters are the same than in random_sample().

Parameters
  • shape (Sequence) – The shape of the array to be created.

  • low (float) – Lower boundary of the output interval. All values generated will be greater than or equal to low. The default value is 0.

  • high (float) – Upper boundary of the output interval. All values generated will be less than or equal to high. The default value is 1.0.

Returns

The new array.

Return type

IArray container

See also

random_sample

References

np.random.uniform