brainpy.math.random.uniform

Contents

brainpy.math.random.uniform#

random.uniform(a, b)#

Get a random number in the range [a, b) or [a, b] depending on rounding.

The mean (expected value) and variance of the random variable are:

E[X] = (a + b) / 2 Var[X] = (b - a) ** 2 / 12