From: Georg Brandl Date: Sun, 21 Sep 2008 08:03:21 +0000 (+0000) Subject: #3918: note that uniform() args can be swapped. X-Git-Tag: v2.6~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afeea0711a504055c8943926255a01adda1b458e;p=thirdparty%2FPython%2Fcpython.git #3918: note that uniform() args can be swapped. --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index fc32e4a0ee8f..858888c9c557 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)