[Numpy-discussion] random.uniform documentation bug?

Alan G Isaac aisaac at american.edu
Tue Feb 23 09:21:32 EST 2010


This behavior does not match the current documentation.

>>> np.random.uniform(low=0.5,high=0.5)
0.5
>>> np.random.uniform(low=0.5,high=0.4)
0.48796883601707464

I assume this behavior is intentional and it is
the documentation that is in error (for the case
when high<=low)?

fwiw,
Alan Isaac



More information about the NumPy-Discussion mailing list