Here you can find the source of getRandomInt()
public static int getRandomInt()
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static final Random RANDOM = new Random(); /**// www.j a v a2 s . com * Gets a random integer. * * @return the random integer */ public static int getRandomInt() { return RANDOM.nextInt(); } }