summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-11 23:14:53 +0000
committerRaymond Hettinger <python@rcn.com>2009-06-11 23:14:53 +0000
commita9a09a99c0364e4215a6404f86d0997e55d40665 (patch)
tree2939d5077dcb86f72f033e083b5e0f1948c74dbc /Doc
parent724370372b104209a6931f9ff095cb35b12f2776 (diff)
downloadcpython-a9a09a99c0364e4215a6404f86d0997e55d40665.tar.gz
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 78c3cc0bed..b6b0b6c4da 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)