summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-07 17:48:33 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-07 17:48:33 (GMT)
commite6dc53120d52f58057fd1a6d666d21cb9d71c08d (patch)
treea91c10c8f2856264f7f213e0f98278b431ec58bc /Doc/library
parentfde5b803d8f2437e5311bae73c970c7205fcd925 (diff)
downloadcpython-e6dc53120d52f58057fd1a6d666d21cb9d71c08d.zip
cpython-e6dc53120d52f58057fd1a6d666d21cb9d71c08d.tar.gz
cpython-e6dc53120d52f58057fd1a6d666d21cb9d71c08d.tar.bz2
Issue #4869: clarify documentation for random.expovariate.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/random.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 858888c..63c4bc7 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -210,9 +210,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)