]> granicus.if.org Git - python/commitdiff
#3918: note that uniform() args can be swapped.
authorGeorg Brandl <georg@python.org>
Sun, 21 Sep 2008 08:03:21 +0000 (08:03 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 21 Sep 2008 08:03:21 +0000 (08:03 +0000)
Doc/library/random.rst

index fc32e4a0ee8f4b2c0ef4807228ef618382a9354d..858888c9c557a336375923ec41452774385954ee 100644 (file)
@@ -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)