Here you can find the source of randomLong()
public static long randomLong()
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static final Random RND = new Random(); public static long randomLong() { return RND.nextLong(); }/*from www .j a va2 s .c o m*/ }