Example of uniform on random page appears to have the wrong comment
29 Apr
2021
29 Apr
'21
4:51 p.m.
Hi! I'm a little confused. In the examples section of the docs for the random module it shows uniform(2.5, 10.0) # Random float: 2.5 <= x < 10.0 But the docs say random.uniform(a, b) Return a random floating point number N such that a <= N <= b for a <= b and b <= N <= a for b < a. So, shouldn't the example really say # Random float: 2.5 <= x <= 10.0 or am I not understanding random.uniform? Best wishes, Ted
1083
Age (days ago)
1085
Last active (days ago)
1 comments
2 participants
participants (2)
-
Julien Palard
-
Theodore Greene