Here you can find the source of getNumberLong()
private static long getNumberLong()
//package com.java2s; //License from project: Apache License public class Main { private static java.util.Random ran = new java.util.Random(); private static long getNumberLong() { return Math.abs(ran.nextLong()); }//www .j a v a 2s . c om }