Possible Duplicate:
How to generate a random String in Java
I am wanting to generate a random string of 20 characters without using apache classes. I don’t really care about whether is alphanumeric or not. Also, I am going to convert it to an array of bytes later FYI.
Thanks,
Here you go. Just specify the chars you want to allow on the first line.