private static boolean calculateIsFailure(){
  int randomValue=random.nextInt(100) + 1;
  return randomValue <= ERROR_PCT;
}

private static boolean calculateIsFailure ( ) { int randomValue = random . nextInt ( 100 ) + 1 ; return randomValue <= ERROR_PCT ; }
randomly determine whether this call should result in a network failure .
