public static int getRandomValueBelow(final int maxValue) {
    return RANDOM.nextInt(maxValue + 1);
  }
Returns a random integer between 0 and the maxValue argument, included maxValue.
app/src/main/java/com/github/pedrovgs/effectiveandroidui/util/RandomUtils.java