I have looked at a lot of others,i still don't get how to input the non-repeat code into my code below.Newbie here,require someone to explain.
import java.util.Random;
class random{
public static void main(String[] args) {
Random dice = new Random();
int number;
for (int counter = 1; counter <= 20; counter++) {
number = 1 + dice.nextInt(100);
System.out.println(number + " ");
}
}