/** * Randomize a {@code short} value in the given range [min, max]. */ public short nextShort(short min, short max) { if (min > max) { throw new IllegalArgumentException(MIN_MAX_ERROR); } return (short) (min + nextShort((short) (max - min + 1))); }
/** * Randomize a {@code short} value in the given range [min, max]. */ public short nextShort(short min, short max) { if (min > max) { throw new IllegalArgumentException(MIN_MAX_ERROR); } return (short) (min + nextShort((short) (max - min + 1))); }