import java.util.Random; Random rand = new Random(); int random_integer = rand.nextInt(upperbound-lowerbound) + lowerbound;
Min + (int)(Math.random() * ((Max - Min) + 1))