Here you can find the source of getRandomUUID()
public static String getRandomUUID()
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static String getRandomUUID() { UUID uuid = UUID.randomUUID(); return uuid.toString(); }//from w ww.ja v a 2s . c o m }