package project;
public class ONE {
public static void main(String[] args) {
for(int i=0;i<4;i++) {
int choose=(int)(Math.random()*3);
switch(choose) {
case 0:System.out.print(lowLetter());break;
case 1:System.out.print(UpLetter());break;
case 2:System.out.print(digit());
}
}
}
public static char lowLetter() {
int num=(int)(Math.random()*26)+'a';
return(char)num;
}
public static char UpLetter() {
int num=(int)(Math.random()*26)+'A';
return(char)num;
}
public static int digit() {
int num=(int)(Math.random()*10);
return num;
}
}