I\'ve been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string. In my situation it would be used as a unique session/key identifie
public static String randomSeriesForThreeCharacter() { Random r = new Random(); String value = ""; char random_Char ; for(int i=0; i<10; i++) { random_Char = (char) (48 + r.nextInt(74)); value = value + random_char; } return value; }