summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-09-21 08:03:21 (GMT)
committerGeorg Brandl <georg@python.org>2008-09-21 08:03:21 (GMT)
commitafeea0711a504055c8943926255a01adda1b458e (patch)
tree75263b40363df6afb61bc73b706d05fecae98785 /Doc
parent450a7f578ee14b13df2446cf9178e9af0ac92d0e (diff)
downloadcpython-afeea0711a504055c8943926255a01adda1b458e.zip
cpython-afeea0711a504055c8943926255a01adda1b458e.tar.gz
cpython-afeea0711a504055c8943926255a01adda1b458e.tar.bz2
#3918: note that uniform() args can be swapped.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/random.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index fc32e4a..858888c 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -188,7 +188,9 @@ be found in any statistics text.
.. function:: uniform(a, b)
- Return a random floating point number *N* such that ``a <= N < b``.
+ Return a random floating point number *N* such that ``a <= N < b`` for
+ ``a <= b`` and ``b <= N < a`` for ``b < a``.
+
.. function:: triangular(low, high, mode)