Pareto distribution. alpha is the shape parameter.
(self, alpha)
| 766 | return 0.0 |
| 767 | |
| 768 | def paretovariate(self, alpha): |
| 769 | """Pareto distribution. alpha is the shape parameter.""" |
| 770 | # Jain, pg. 495 |
| 771 | |
| 772 | u = 1.0 - self.random() |
| 773 | return u ** (-1.0 / alpha) |
| 774 | |
| 775 | def weibullvariate(self, alpha, beta): |
| 776 | """Weibull distribution. |