Here you can find the source of getLong()
public static long getLong()
//package com.java2s; import java.util.Random; public class Main { private static final Random RANDOM = new Random(); /**// ww w.j a v a2 s .c om * Gets a random long. * * @return random long. */ public static long getLong() { return RANDOM.nextLong(); } }