code: public static double quantile(double val, double mu, double beta) {
      return mu - beta * FastMath.log(-FastMath.log(val));
    }
docs: Quantile function of Gumbel distribution
  
  @param val Value
  @param mu Mode
  @param beta Shape
  @return Quantile function at position x.