Code example for Random

Methods: nextInt

0
	 * @param pMin inclusive! 
	 * @param pMax inclusive! 
	 * @return 
	 */ 
	public static final int random(final int pMin, final int pMax) {
		return pMin + RANDOM.nextInt(pMax - pMin + 1);
	} 
 
	public static final boolean isPowerOfTwo(final int n) {
		return ((n != 0) && (n & (n - 1)) == 0);
	} 
 
	public static final int nextPowerOfTwo(final float f) {
		return MathUtils.nextPowerOfTwo((int)(FloatMath.ceil(f)));
	} 
 
	public static final int nextPowerOfTwo(final int n) {
		int k = n;
 
		if (k == 0) {
			return 1;