def rexponweib(alpha, k, loc=0, scale=1, size=None):
    """
    Random exponentiated Weibull variates.
    """

    q = np.random.uniform(size=size)
    r = flib.exponweib_ppf(q, alpha, k)
    return loc + r * scale
def rexponweib ( alpha , k , loc = 0 , scale = 1 , size = None ) : q = np . random . uniform ( size = size ) r = flib . exponweib_ppf ( q , alpha , k ) return loc + r * scale
Random exponentiated Weibull variates.