Java tutorial
//package com.java2s; import java.util.Random; public class Main { private static Random random; public static String generateRandomUTDID() { StringBuffer stringBuffer = new StringBuffer(); for (int i = 0; i < 24; i++) { stringBuffer.append((char) (random.nextInt(25) + 65)); } return stringBuffer.toString(); } }