package proclient.util;

import java.util.Random;

public class MathUtil {

    private static Random random = new Random();

    public static int getRandomInRange(double max, double min) {
        return (int) (min + (max - min) * random.nextDouble());
    }

    public static int getRandomInRange(int max, int min) {
        return (int) (min + (max - min) * random.nextDouble());
    }

    public static double randomNumber(double max, double min) {
        return (Math.random() * (max - min)) + min;
    }

}