Here you can find the source of randInt(int min, int max)
public static int randInt(int min, int max)
//package com.java2s; //License from project: Open Source License public class Main { public static int randInt(int min, int max) { return min + (int) (Math.random() * ((max - min))); }/*w w w .j a v a 2s. c o m*/ }