[3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)

(cherry picked from commit 440c025726)


Co-authored-by: Julien Palard <julien@palard.fr>

Automerge-Triggered-By: GH:JulienPalard
This commit is contained in:
Miss Islington (bot) 2021-05-03 05:43:04 -07:00 committed by GitHub
parent 7f7dc67354
commit 1536342c44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,7 +409,7 @@ Basic examples::
>>> random() # Random float: 0.0 <= x < 1.0 >>> random() # Random float: 0.0 <= x < 1.0
0.37444887175646646 0.37444887175646646
>>> uniform(2.5, 10.0) # Random float: 2.5 <= x < 10.0 >>> uniform(2.5, 10.0) # Random float: 2.5 <= x <= 10.0
3.1800146073117523 3.1800146073117523
>>> expovariate(1 / 5) # Interval between arrivals averaging 5 seconds >>> expovariate(1 / 5) # Interval between arrivals averaging 5 seconds