public static double pareto(double alpha) {
        if (alpha <= 0.0)
            throw new IllegalArgumentException("Shape parameter alpha must be positive");
        return Math.pow(1 - uniform(), -1.0/alpha) - 1.0;
    }