summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorleodema <leodema@users.noreply.github.com>2017-06-04 06:41:41 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2017-06-04 06:41:41 (GMT)
commit9f396b605ec03fc5af100222f1b0a9063ac02a0b (patch)
treefd3f5f2cc49674d008fc39cddd86ae6fb96447b7 /Lib
parent21c2dd7cf8414c903f0e83cf1d6b7f02f645f422 (diff)
downloadcpython-9f396b605ec03fc5af100222f1b0a9063ac02a0b.zip
cpython-9f396b605ec03fc5af100222f1b0a9063ac02a0b.tar.gz
cpython-9f396b605ec03fc5af100222f1b0a9063ac02a0b.tar.bz2
fix comment (#1798)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py
index b54d524..e1c2c2b 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -540,7 +540,7 @@ class Random(_random.Random):
return x * beta
elif alpha == 1.0:
- # expovariate(1)
+ # expovariate(1/beta)
u = random()
while u <= 1e-7:
u = random()