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