(self, alpha, beta)
return alpha * (-_log(u)) ** (1.0/beta)
Weibull distribution.

        alpha is the scale parameter and beta is the shape parameter.
Weibull distribution.
Weibull distribution .
def weibullvariate(self, alpha, beta):
        """Weibull distribution.

        alpha is the scale parameter and beta is the shape parameter.

        """
        # Jain, pg. 499; bug fix courtesy Bill Arms

        u = 1.0 - self.random()
        return alpha * (-_log(u)) ** (1.0/beta)
def weibullvariate ( self , alpha , beta ) : # Jain, pg. 499; bug fix courtesy Bill Arms u = 1.0 - self . random ( ) return alpha * ( - _log ( u ) ) ** ( 1.0 / beta )