[Python-checkins] Doc: Fix random.uniform example comment. (GH-25784)
rhettinger
webhook-mailer at python.org
Mon May 3 05:21:14 EDT 2021
https://github.com/python/cpython/commit/440c0257262fec6f519bb81e49f1a4f341aeed66
commit: 440c0257262fec6f519bb81e49f1a4f341aeed66
branch: master
author: Julien Palard <julien at palard.fr>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2021-05-03T02:20:54-07:00
summary:
Doc: Fix random.uniform example comment. (GH-25784)
files:
M Doc/library/random.rst
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 9f037a1a822ac..e924127d8b828 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -419,7 +419,7 @@ Basic examples::
>>> random() # Random float: 0.0 <= x < 1.0
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
>>> expovariate(1 / 5) # Interval between arrivals averaging 5 seconds
More information about the Python-checkins
mailing list