Here you can find the source of randomValue()
public static final String randomValue()
//package com.java2s; //License from project: Open Source License public class Main { public static final String randomValue() { double currentTimeMillis = System.currentTimeMillis() * Math.random(); return String.valueOf(Math.round(currentTimeMillis)); }//from ww w . j a v a2 s.com }