GH-100234: Set a default value for random.expovariate() (GH-100235)

This commit is contained in:
Raymond Hettinger 2022-12-15 20:40:45 +02:00 committed by GitHub
parent 8356c14b4f
commit b430399d41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View file

@ -988,6 +988,7 @@ class TestDistributions(unittest.TestCase):
g.random = x[:].pop; g.uniform(1,10)
g.random = x[:].pop; g.paretovariate(1.0)
g.random = x[:].pop; g.expovariate(1.0)
g.random = x[:].pop; g.expovariate()
g.random = x[:].pop; g.weibullvariate(1.0, 1.0)
g.random = x[:].pop; g.vonmisesvariate(1.0, 1.0)
g.random = x[:].pop; g.normalvariate(0.0, 1.0)