Here you can find the source of randomName()
public static String randomName()
//package com.java2s; public class Main { private static long next; /**/*from ww w .j a v a2 s. c o m*/ * Return a generated short, random string * * @return String */ public static String randomName() { return "TMP_" + next++; } /** * Return a generated short, random string * * @param prefix the prefix name * @return String */ public static String randomName(String prefix) { return prefix + "_" + next++; } }