How do you generate a random alphanumeric sequence in Java?
How do you generate a random alphanumeric sequence in Java? randomUUID(). toString(). replaceAll(“-“, “”); makes the string alpha-numeric, as requested…. +1, the simplest solution here for generating a random string of specified length (apart from using RandomStringUtils from Commons Lang). Consider using SecureRandom instead of the Random class. How do Read more…