uniform#

named_arrays.random.uniform(low, high, shape_random=None, seed=None)#

Draw samples from a uniform distribution

Parameters:
  • low (RandomLowT) – Lower boundary of the output

  • high (RandomHighT) – Upper boundary of the output

  • shape_random (None | dict[str, int]) – Additional dimensions to be broadcast against start and stop

  • seed (None | int) – Seed for the random number generator, can be provided for repeatability

Return type:

RandomLowT | RandomHighT

See also

numpy.random.uniform()

Equivalent numpy function

named_arrays.ScalarUniformRandomSample

Implicit array version of this function for scalars

named_arrays.UncertainScalarUniformRandomSample

Implicit array version of this function for uncertain scalars