private static int calculateDelayForSuccess(){
  float errorPercent=VARIANCE_PCT / 100f;
  float lowerBound=1f - errorPercent;
  float upperBound=1f + errorPercent;
  float bound=upperBound - lowerBound;
  float delayPercent=(random.nextFloat() * bound) + lowerBound;
  return (int)(DELAY_MS * delayPercent);
}

private static int calculateDelayForSuccess ( ) { float errorPercent = VARIANCE_PCT / 100f ; float lowerBound = 1f - errorPercent ; float upperBound = 1f + errorPercent ; float bound = upperBound - lowerBound ; float delayPercent = ( random . nextFloat ( ) * bound ) + lowerBound ; return ( int ) ( DELAY_MS * delayPercent ) ; }
get the delay ( in milliseconds ) that should be used for delaying a successful network call response .
