/** * Inclusive inner, exclusive outer. * * @param inner the inner bound, inclusive, can be positive or negative * @param outer the outer bound, exclusive, can be positive or negative, usually greater than inner * @return a random int between inner (inclusive) and outer (exclusive) */ public final int nextInt(final int inner, final int outer) { return inner + nextInt(outer - inner); }