Hello all,
I wish to enquire about the random character generator. If any person knows about generating a random character, please tell me.
Thank you.
Learn About Random Character Generator In Brief.
I am not sure about the language you are using, but I am describing the process of random character generation using Java.
The easiest method is to do the following as:
- First, create a string alphabet with the characters that you wish.
- Suppose N = alphabet.length().
- After that use java.util.Random class for a random integer x = nextInt(N).
- Finally, alphabet.charAt(x)Â will provide you a random char from the alphabet.
For example: