public static double nextPowLaw(double alpha,double cut,RandomEngine randomGenerator){
  return cut * Math.pow(randomGenerator.raw(),1.0 / (alpha + 1.0));
}

public static double nextPowLaw ( double alpha , double cut , RandomEngine randomGenerator ) { return cut * Math . pow ( randomGenerator . raw ( ) , 1.0 / ( alpha + 1.0 ) ) ; }
returns a power - law distributed random number with the given exponent and lower cutoff .
