diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-07 17:54:07 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-07 17:54:07 (GMT) |
commit | 2f947369b37c8f16f882a9c426245193a1801bbd (patch) | |
tree | c157938fd7bda7617ac5344c2a6129b9af5a96f6 /Doc/library/random.rst | |
parent | 1054f95b70abaa0353216c3c6ecd34dea92c5b5e (diff) | |
download | cpython-2f947369b37c8f16f882a9c426245193a1801bbd.zip cpython-2f947369b37c8f16f882a9c426245193a1801bbd.tar.gz cpython-2f947369b37c8f16f882a9c426245193a1801bbd.tar.bz2 |
Merged revisions 68378 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68378 | mark.dickinson | 2009-01-07 17:48:33 +0000 (Wed, 07 Jan 2009) | 2 lines
Issue #4869: clarify documentation for random.expovariate.
........
Diffstat (limited to 'Doc/library/random.rst')
-rw-r--r-- | Doc/library/random.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst index da0e663..82d2555 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -169,9 +169,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) |