[Python-checkins] r66535 - python/trunk/Doc/library/random.rst

georg.brandl python-checkins at python.org
Sun Sep 21 10:03:21 CEST 2008


Author: georg.brandl
Date: Sun Sep 21 10:03:21 2008
New Revision: 66535

Log:
#3918: note that uniform() args can be swapped.


Modified:
   python/trunk/Doc/library/random.rst

Modified: python/trunk/Doc/library/random.rst
==============================================================================
--- python/trunk/Doc/library/random.rst	(original)
+++ python/trunk/Doc/library/random.rst	Sun Sep 21 10:03:21 2008
@@ -188,7 +188,9 @@
 
 .. 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)
 


More information about the Python-checkins mailing list