Java char type random upper case character generate
public class Main { public static void main(String[] args) { char ch = (char)(Math.random() * 26 + 'A'); System.out.println(ch);/* w w w .j a v a 2 s . c om*/ } }