randomly determine whether this call should result in a network failure in accordance with configured behavior . when true , #failureexception should be thrown . concode_field_sep int DEFAULT_DELAY_MS concode_elem_sep long delayMs concode_elem_sep int DEFAULT_VARIANCE_PERCENT concode_elem_sep Random random concode_elem_sep int DEFAULT_FAILURE_PERCENT concode_elem_sep Throwable failureException concode_elem_sep int variancePercent concode_elem_sep int failurePercent concode_field_sep void setFailurePercent concode_elem_sep long delay concode_elem_sep int variancePercent concode_elem_sep long calculateDelay concode_elem_sep int failurePercent concode_elem_sep Throwable failureException concode_elem_sep T applyBehavior concode_elem_sep NetworkBehavior create concode_elem_sep NetworkBehavior create concode_elem_sep void setDelay concode_elem_sep void setVariancePercent concode_elem_sep void setFailureException
boolean function ( ) { int loc0 = random . nextInt ( 100 ) ; return loc0 < failurePercent ; }