package me.otisdiver.otisarena.utils;

import java.util.Random;

public class RandUtils {

    private static Random randomSet = new Random();
    
    /** Get a random integer less than a given value.
     * 
     * @param max the maximum (exclusive) value of the number
     * @return a pseudo randomly generated number above 0
     */
    public static int rand(int max) {
        return randomSet.nextInt(max);
        // TODO use this method across all classes
    }
    
    /** Get a boolean with a % chance of being true
     * 
     * @param percent chance of returning true
     * @return true % of the time
     */
    public static boolean percentChance(int percent) {
        if (percent == 0) return false;
        return (randomSet.nextInt(101) <= percent);
    }
}

@@ -412,59 +412,8 @@
 x);%0A
-        // TODO use this method across all classes%0A
     

remove finished TODO