Here you can find the source of randomKey()
public static String randomKey()
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w.ja v a2 s .c om * Method to generate random key * * @return random Integer key */ public static String randomKey() { return Long.toHexString(Double.doubleToLongBits(Math.random())); } }