From: Raymond Hettinger Date: Tue, 24 Feb 2009 12:49:33 +0000 (+0000) Subject: random.py: sync-up 3.0 docs from 3.1 updates. X-Git-Tag: 3.0~362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbf34a338e257ff025747e6eb31302ed22a20793;p=thirdparty%2FPython%2Fcpython.git random.py: sync-up 3.0 docs from 3.1 updates. --- diff --git a/Doc/library/random.rst b/Doc/library/random.rst index a4408d475f98..cab6d2f20758 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -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)