protected int drawNextEventTimeDiff(){
  int timeDiff=msgInterval[0] == msgInterval[1] ? 0 : rng.nextInt(msgInterval[1] - msgInterval[0]);
  return msgInterval[0] + timeDiff;
}

protected int drawNextEventTimeDiff ( ) { int timeDiff = msgInterval [ 0 ] == msgInterval [ 1 ] ? 0 : rng . nextInt ( msgInterval [ 1 ] - msgInterval [ 0 ] ) ; return msgInterval [ 0 ] + timeDiff ; }
generates a ( random ) time difference between two events
