]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
random.py: sync-up 3.0 docs from 3.1 updates.
authorRaymond Hettinger <python@rcn.com>
Tue, 24 Feb 2009 12:49:33 +0000 (12:49 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 24 Feb 2009 12:49:33 +0000 (12:49 +0000)
Doc/library/random.rst

index a4408d475f9808054762f97219f247aecb3bb11c..cab6d2f207585f7c2b4c1d33ade756e3ce26ec4a 100644 (file)
@@ -159,9 +159,11 @@ be found in any statistics text.
 
 .. 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)