Java tutorial
//package com.java2s; import java.util.UUID; public class Main { /** * Retrieve a type 4 (pseudo randomly generated) UUID. * * @return A randomly generated {@code UUID} */ public static String generateUUID() { return UUID.randomUUID().toString().replace("-", "").toLowerCase(); } }