Here you can find the source of getRandomNumber()
public static String getRandomNumber()
//package com.java2s; //License from project: Apache License import java.util.Random; public class Main { public static String getRandomNumber() { Random random = new Random(); long n = (long) (100000L + random.nextFloat() * 900000L); return new Long(n).toString(); }/*from www. j a va 2 s. c om*/ }