[Solved] Generate a RANDOM id for users [closed]
(You will want to take a look at the Random class in java. It provides random numbers, which is very useful. To answer your question, I would suggest having a String of allowed characters in the ID, and constructing a new string using a StringBuilder, by selecting random characters from your ALLOWED_CHARACTERS string. Something like … Read more