Here you can find the source of getRandomNumberFixLength()
public static long getRandomNumberFixLength()
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { static Random generator = new Random(System.currentTimeMillis()); public static long getRandomNumberFixLength() { return 1000000000L + generator.nextInt(2000000000); }/*from ww w.ja v a 2 s .c o m*/ }