Java examples for java.util:Random Int
generate Random Integer
//package com.java2s; public class Main { public static int generateRandomInteger(int min, int max) { return min + (int) (Math.random() * ((max - min) + 1)); }/* www. j a va2s. c o m*/ }