Here you can find the source of generateUUIDRandom()
public static String generateUUIDRandom()
//package com.java2s; //License from project: Apache License import java.util.Random; import java.util.UUID; public class Main { public static String generateUUIDRandom() { String uuid = UUID.randomUUID().toString(); uuid += "-" + generateShortRandom(); return uuid; }// www. ja va 2 s.com public static int generateShortRandom() { Random randomGenerator = new Random(); return randomGenerator.nextInt(99000 - 10000 + 1) + 10000; } }