public class RandomNum {
public void main(String args[]) {
boolean a = true;
String zf = "";
while (a) {
double b = Math.random() * 123;
int c = (int) b;
if (c >= 0 && c <= 9) {
zf += c;
} else if (c >= 65 && c <= 90) {
zf += (char) c;
} else if (c > 97 && c <= 122) {
zf += (char) c;
}
if (zf.length() == 4) {
break;
}
}
System.out.println(zf);
}
}
public void main(String args[]) {
boolean a = true;
String zf = "";
while (a) {
double b = Math.random() * 123;
int c = (int) b;
if (c >= 0 && c <= 9) {
zf += c;
} else if (c >= 65 && c <= 90) {
zf += (char) c;
} else if (c > 97 && c <= 122) {
zf += (char) c;
}
if (zf.length() == 4) {
break;
}
}
System.out.println(zf);
}
}