Here you can find the source of getRandomNum()
public static long getRandomNum()
//package com.java2s; /*/* w w w . j a v a 2s .co m*/ * This file is part of the DITA Open Toolkit project. * See the accompanying license.txt file for applicable licenses. */ import java.util.Random; public class Main { /** * Return a random long number. * @return long - * Long random integer generated. */ public static long getRandomNum() { final Random generator = new Random(); return generator.nextLong(); } }