public static int nextRandomInt(int min, int max) {
        return (int) (nextRandomFloat() * (max - min + 1)) + min;
    }
Generates a pseudorandom {@code int} in the range [min, max] (inclusive).

@param min The lower bound (inclusive).
@param max The upper bound (inclusive).
@return A random {@code int} value within the specified range.
jme3-core/src/main/java/com/jme3/math/FastMath.java