Here you can find the source of getRandonNumber(int range)
public static int getRandonNumber(int range)
//package com.java2s; //License from project: Open Source License public class Main { public static int getRandonNumber(int range) { return randomNumber(range); }//from ww w . ja va 2 s.com public static int randomNumber(int range) { java.util.Random rnd = new java.util.Random(); long seed = rnd.nextLong() / 3; rnd.setSeed(seed); return rnd.nextInt(range); } }