Here you can find the source of getNumber(int seed)
private static int getNumber(int seed)
//package com.java2s; //License from project: Apache License public class Main { private static java.util.Random ran = new java.util.Random(); /**************************************************************/ private static int getNumber() { return Math.abs(ran.nextInt()); }/*from w w w .ja v a2 s . com*/ private static int getNumber(int seed) { if (seed == 0) { return 0; } return getNumber() % seed; } private static int getNumber(int start, int end) { return start + getNumber(end - start); } }