可以看作是一种对id 的hash
public static void main(String[] args) { Random random = new Random(); for (int j = 1; j < 100; j++) { int i = random.nextInt(1000); System.out.println(j * 1000 + i); } }