public static void main(String[] args) {
Random random = new Random();
boolean[] bl = new boolean[20];
int radInt = 0;
for (int j = 0; j <10; j++) {
do {
rdInt = random.nextInt(20);
} while (bl[rdInt]);
bl[rdInt] = true;
System.out.println(rdInt);
}
Random random = new Random();
boolean[] bl = new boolean[20];
int radInt = 0;
for (int j = 0; j <10; j++) {
do {
rdInt = random.nextInt(20);
} while (bl[rdInt]);
bl[rdInt] = true;
System.out.println(rdInt);
}