]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Fix random.uniform example comment. (GH-25784)
authorJulien Palard <julien@palard.fr>
Mon, 3 May 2021 09:20:54 +0000 (11:20 +0200)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 09:20:54 +0000 (02:20 -0700)
Doc/library/random.rst

index 9f037a1a822ac4b2f0bb7924242e8e536337093c..e924127d8b828d81ad71813a68c8992622164cf6 100644 (file)
@@ -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