Here you can find the source of getRandomObject()
public static Random getRandomObject()
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static Random rand; public static Random getRandomObject() { return rand; }//from w w w .j a v a 2s . c o m }