public static void main(String[] args) {
Random random = new Random();
String str = "ABCDEFGhijklmn1234567";
for (int i = 0; i < 4; i++) {
int index = random.nextInt(str.length());
System.out.println(str.charAt(index));
}
}