I need help writing a method that will return a random 4 digit number with no repetitions. I am not allowed to use string in any way...
This is what i have so far and the line where ran. is involved, im getting an error: ran cannot be resolved
public static int generateSecretNumber() {
Random r = new Random();
int x = r.nextInt(1000);;
x = x + 1000;
return x;