package pkg;
import java.util.*;
public class test {
public static void main(String[] args) {
Random rand= new Random(47);
for (int i=0;i<300;i++) {
if (i%100==0)
System.out.println("\nNext 100 patents' application number is:");
System.out.print("201");
for (int j=3;j<12;j++){
int a=rand.nextInt(10);
System.out.print(a);
}
System.out.print(".");
int a=rand.nextInt(11);
if (a==10)
System.out.println("X");
else
System.out.println(a);
}
}
}
OUTPUT:
Next 100 patents' application number is:
201853119802.2
201881998810.9
201601243650.7
201440626344.4
201318269526.2
201784554626.8
201742742081.6
201254929883.X
201640473188.7
...