[Python-checkins] r69939 - python/branches/release30-maint/Doc/library/random.rst

raymond.hettinger python-checkins at python.org
Tue Feb 24 13:49:33 CET 2009


Author: raymond.hettinger
Date: Tue Feb 24 13:49:33 2009
New Revision: 69939

Log:
random.py:  sync-up 3.0 docs from 3.1 updates.

Modified:
   python/branches/release30-maint/Doc/library/random.rst

Modified: python/branches/release30-maint/Doc/library/random.rst
==============================================================================
--- python/branches/release30-maint/Doc/library/random.rst	(original)
+++ python/branches/release30-maint/Doc/library/random.rst	Tue Feb 24 13:49:33 2009
@@ -159,9 +159,11 @@
 
 .. function:: expovariate(lambd)
 
-   Exponential distribution.  *lambd* is 1.0 divided by the desired mean.  (The
-   parameter would be called "lambda", but that is a reserved word in Python.)
-   Returned values range from 0 to positive infinity.
+   Exponential distribution.  *lambd* is 1.0 divided by the desired
+   mean.  It should be nonzero.  (The parameter would be called
+   "lambda", but that is a reserved word in Python.)  Returned values
+   range from 0 to positive infinity if *lambd* is positive, and from
+   negative infinity to 0 if *lambd* is negative.
 
 
 .. function:: gammavariate(alpha, beta)


More information about the Python-checkins mailing list