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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afeea0711a504055c8943926255a01adda1b458e;p=python #3918: note that uniform() args can be swapped. --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index fc32e4a0ee..858888c9c5 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)