I need a method to return a random string in the format:
Letter Number Letter Number Letter Number
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you don’t need it to be threadsafe:
(You could use a 3-iteration loop in RandomStringInSpecialFormat, but it doesn’t have much benefit.)
If you need it to be thread-safe, you’ll need some way of making sure you don’t access the Random from multiple threads at the same time. The simplest way to do this (in my view) is to use StaticRandom from MiscUtil.