Here you can find the source of getRandomInt()
public static int getRandomInt()
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { /**// w w w . j a va 2s . c o m * The generator used to generate random integer. */ private static final Random generator = new Random(); /** * Returns the random integer from min to max value of the system. * @return randomInt, the random integer from min to max value of the system. */ public static int getRandomInt() { return generator.nextInt(); } }