Here you can find the source of getRandomNum()
public final static int getRandomNum()
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { private final static Random rnd = new Random(System.currentTimeMillis()); /**/* w ww . j a v a 2s . c om*/ * get integer random number * @return */ public final static int getRandomNum() { return rnd.nextInt(); } }