summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-11 23:18:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-06-11 23:18:54 (GMT)
commitd97d1fdc6097441f120b248ecbc2646045f6f277 (patch)
treea12bbbac01b0e069dbe14eaae91721d66413595d /Doc
parent75b544886bc43aa2aeb49522d9f640af116f97ab (diff)
downloadcpython-d97d1fdc6097441f120b248ecbc2646045f6f277.zip
cpython-d97d1fdc6097441f120b248ecbc2646045f6f277.tar.gz
cpython-d97d1fdc6097441f120b248ecbc2646045f6f277.tar.bz2
Issue 6261: Clarify behavior of random.uniform().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/random.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 78c3cc0..b6b0b6c 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -191,6 +191,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)