Here you can find the source of getRandomNumberGenerator()
public static Random getRandomNumberGenerator()
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { private static volatile long seedQualifier = 432282912137141232L; public static Random getRandomNumberGenerator() { return new Random(++seedQualifier + System.nanoTime()); }//from w w w . j a va 2 s . co m }