diff options
author | Raymond Hettinger <python@rcn.com> | 2009-06-11 23:12:14 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-06-11 23:12:14 (GMT) |
commit | be40db07c61030d1855a0d173eb30645968d6586 (patch) | |
tree | 8be999e7deb59233589be0f34fd0ebded477d642 /Doc/library/random.rst | |
parent | 59e6eb1c3b8170f20754e5d863e7c2316212d59a (diff) | |
download | cpython-be40db07c61030d1855a0d173eb30645968d6586.zip cpython-be40db07c61030d1855a0d173eb30645968d6586.tar.gz cpython-be40db07c61030d1855a0d173eb30645968d6586.tar.bz2 |
Issue 6261: Clarify behavior of random.uniform().
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r-- | Doc/library/random.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index ecfa607..6c7a04d 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -142,6 +142,8 @@ be found in any statistics text. Return a random floating point number *N* such that ``a <= N <= b`` for ``a <= b`` and ``b <= N <= a`` for ``b < a``. + The end-point value ``b`` may or may not be included in the range + depending on floating-point rounding in the equation ``a + (b-a) * random()``. .. function:: triangular(low, high, mode) |