code: public static int getBoundedNumber(Random random, int inclusiveLowerBound,
              int exclusiveUpperBound) {
          return random.nextInt(exclusiveUpperBound - inclusiveLowerBound) +
                  inclusiveLowerBound;
      }
docs: Gets bounded number.
  
  @param random              the random
  @param inclusiveLowerBound the inclusive lower bound
  @param exclusiveUpperBound the exclusive upper bound
  @return the bounded number