Java Random randomKey()

Here you can find the source of randomKey()

Description

Method to generate random key

License

Open Source License

Return

random Integer key

Declaration

public static String randomKey() 

Method Source Code

//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()));
    }
}

Related

  1. randomInsults()
  2. randomIntArray(int len, Random rand)
  3. randomIntegerList(int sz, int min, int max)
  4. randomIntegers(int sz)
  5. randomIterable(Collection col)
  6. randomKey()
  7. randomLetter()
  8. randomList(Collection collection)
  9. randomMember(Collection collection)