Here you can find the source of getRandomUUID()
public static String getRandomUUID()
//package com.java2s; import java.util.UUID; public class Main { public static String getRandomUUID() { UUID uuid = UUID.randomUUID(); return uuid.toString().replaceAll("-", ""); }/* w w w. j ava2 s.com*/ }