public static boolean percent(final int percentage) {
    return (RANDOM.nextInt(CENT_PERCENT) < percentage);
  }
Return true of false using a random value generated and the percentage passed as parameter.

@param percentage to evaluate.
@return true fifty percent of the times it's executed if the percentage parameter is 50.
app/src/main/java/com/github/pedrovgs/effectiveandroidui/util/RandomUtils.java