public class Test {
public static void main(String[] args) {
for(int i = 0; i < 4; i++){
System.out.println("第" + (i + 1) + "位随机数为:" + (int)(Math.random()*9000+1000));
}
}
}
public class Test {
public static void main(String[] args) {
for(int i = 0; i < 4; i++){
System.out.println("第" + (i + 1) + "位随机数为:" + (int)(Math.random()*9000+1000));
}
}
}