Random Character Generator in Java Programing Languange


This is how you can generate any random character from A to Z in Java Programming Language. 
 
String var=""; 
 
for (int i=0; i<(length_here); i++)
{
var += (char)('0' + Math.random() * ('9' - '0' + 1));
}
return var; 
 
 







GIVE FEEDBACK ()