random code generater for android application email verification : I am writing a new android application that require the user to register and provide email. I need to send email and give them a code for verification. I need to generate a 6-digit random code that consisting numbers with uppercase alphabet, for example, 6H94BA. I have done some research and cannot find anything. How to do that? 