Mercurial > cpython-lru_cache-weakref
diff Lib/random.py @ 6801:bca948194dea legacy-trunk
# Typos in the comments giving the names of two recently added distributions.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 09 Dec 1997 19:43:18 +0000 |
| parents | b73eb4e6face |
| children | 297bea233e03 |
line wrap: on
line diff
--- a/Lib/random.py Tue Dec 09 19:39:12 1997 +0000 +++ b/Lib/random.py Tue Dec 09 19:43:18 1997 +0000 @@ -212,7 +212,7 @@ z = expovariate(1.0/beta) return z/(y+z) -# -------------------- pareto -------------------- +# -------------------- Pareto -------------------- def paretovariate(alpha): # Jain, pg. 495 @@ -220,7 +220,7 @@ u = random() return 1.0 / pow(u, 1.0/alpha) -# -------------------- pareto -------------------- +# -------------------- Weibull -------------------- def weibullvariate(alpha, beta): # Jain, pg. 499; bug fix courtesy Bill Arms
