(self)
return icdf(random.uniform(0, 1))
A random realization from the distribution
A random realization from the distribution
A random realization from the distribution
def sample(self):
        """ A random realization from the distribution """
        icdf = self._inverse_cdf_expression()
        return icdf(random.uniform(0, 1))
def sample ( self ) : icdf = self . _inverse_cdf_expression ( ) return icdf ( random . uniform ( 0 , 1 ) )