I have created a java gwt application in which I want to verify user's email address from client side, is there any way to generate random 5 character code on client side?
Any sort of help will be appreciated.
Something like this?
StringBuilder sb = new StringBuilder();
Random random = new Random();
for (int i=0;i<5;i++) {
sb.append('a'+random.nextInt(26));
}
String code = sb.toString();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With