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;
}

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 ; }
returns a random real number from a pareto distribution with shape parameter & alpha ; .
