public static int randExponential(final int mean){
  return (int)(-mean * Math.log(rand.nextDouble()));
}

public static int randExponential ( final int mean ) { return ( int ) ( - mean * Math . log ( rand . nextDouble ( ) ) ) ; }
generates an exponentially distributed random number and rounds it .
