package week;

import java.util.Random;

public class TelePhoneNumber {
public static void main(String[] args) {
Random random = new Random();
int[] nums = new int[10];
for(int i = 0 ; i < 9; i++){
System.out.print(1);
for(int j = 0; j <10 ;j++){
if(j == 0){
nums[j] = random.nextInt(7)+3;
System.out.print(nums[j]);
continue;
}
nums[j] = random.nextInt(10);
System.out.print(nums[j]);
}
System.out.println();
}
}

}

posted on 2019-02-27 16:30  郑富兴  阅读(127)  评论(0编辑  收藏  举报