please any one can explain me why character 'z' is include
in the output.
public class ForLoop {
public static void main(
String args[]) {
int character = 0;
int count = 0;
for(int a =0 ; a < 100 ; a++ ) {
character = (int) ( ( Math.random() * 26 ) + 65 );
// if Math.random() return maximam value
//0.9999999999999999999999 then
//0.9999999999999999999999 * 26 = 25.9999999999999999
// and finally 25.99999999999999999 + 65
// final maximam answer should be 90.9999999999999999999
// and its (int) is 90 so why z is include in the output
// if its ascii code is 91
System.out.print((char) character + " ");
count ++;
if (count == 10) {
count = 0;
System.out.println("");
}
}
}//end of main
}//end of class