diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2022-12-15 18:40:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 18:40:45 (GMT) |
commit | b430399d41fa88e9040cd055e55cf9211bf63c61 (patch) | |
tree | a83f25c8bb342a19bbefe8f76208eff2c0f43fc1 /Lib/random.py | |
parent | 8356c14b4f81f4d0010afb61610edacf4068b804 (diff) | |
download | cpython-b430399d41fa88e9040cd055e55cf9211bf63c61.zip cpython-b430399d41fa88e9040cd055e55cf9211bf63c61.tar.gz cpython-b430399d41fa88e9040cd055e55cf9211bf63c61.tar.bz2 |
GH-100234: Set a default value for random.expovariate() (GH-100235)
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index c70294e..e60b729 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -577,7 +577,7 @@ class Random(_random.Random): """ return _exp(self.normalvariate(mu, sigma)) - def expovariate(self, lambd): + def expovariate(self, lambd=1.0): """Exponential distribution. lambd is 1.0 divided by the desired mean. It should be |