List<Integer> redNumber = new ArrayList<Integer>();
for (int i = 1; i < 34; i++) {
redNumber.add(i);
}
Collections.shuffle(redNumber);
Set<Integer> redSort = new TreeSet<Integer>();
for (int i = 0; i < 6; i++) {
redSort.add(redNumber.get(i));
}
for (Integer red : redSort) {
System.out.print((red > 9 ? red : "0" + red)+" ");
}
}
private void blue() {
int blue = new Random().nextInt(16)+1;
System.out.println(" " + (blue > 9 ? blue : "0" + blue));
}