summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-09 19:43:18 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-09 19:43:18 (GMT)
commit5bdea89c892b1a10281eeae7b60da7f9a0c15ec4 (patch)
tree0f51f8089c250da7eeb654f979206b20997e4840 /Lib
parentba179051aadd7ea81ad698faa2514d00dfd03ab5 (diff)
downloadcpython-5bdea89c892b1a10281eeae7b60da7f9a0c15ec4.zip
cpython-5bdea89c892b1a10281eeae7b60da7f9a0c15ec4.tar.gz
cpython-5bdea89c892b1a10281eeae7b60da7f9a0c15ec4.tar.bz2
# Typos in the comments giving the names of two recently added distributions.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/random.py b/Lib/random.py
index 52a4266..ebab1f8 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -212,7 +212,7 @@ def betavariate(alpha, beta):
z = expovariate(1.0/beta)
return z/(y+z)
-# -------------------- pareto --------------------
+# -------------------- Pareto --------------------
def paretovariate(alpha):
# Jain, pg. 495
@@ -220,7 +220,7 @@ def paretovariate(alpha):
u = random()
return 1.0 / pow(u, 1.0/alpha)
-# -------------------- pareto --------------------
+# -------------------- Weibull --------------------
def weibullvariate(alpha, beta):
# Jain, pg. 499; bug fix courtesy Bill Arms