mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Issue #4869: clarify documentation for random.expovariate.
This commit is contained in:
parent
fde5b803d8
commit
e6dc53120d
2 changed files with 10 additions and 6 deletions
|
|
@ -413,9 +413,11 @@ class Random(_random.Random):
|
|||
def expovariate(self, 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.
|
||||
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.
|
||||
|
||||
"""
|
||||
# lambd: rate lambd = 1/mean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue