Here you can find the source of getRandomValue(String prefix, long maxValue)
public static String getRandomValue(String prefix, long maxValue)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.ThreadLocalRandom; public class Main { public static String getRandomValue(String prefix, long maxValue) { long randomLongValue = ThreadLocalRandom.current().nextLong(maxValue); return prefix + randomLongValue; }//ww w .ja v a 2 s . co m }