Can I get random.util not to generate the same number twice

Hi! I'm very new to Java and I'm trying to learn. I wanted to do a simple project where I use random to generate 4 random numbers between 1 and 35.

These are my two methods:

public void Lotto1(){

Message1("Lotto1");

Random randomGenerator = new Random();

for (int i = 1; i <= 4; ++i){

int randomInt = randomGenerator.nextInt(35);

Message1(" " + randomInt);

}

public void Lotto2(){

Message1(" \nLotto2 ");

Random randomGenerator = new Random();

for (int i = 1; i <= 4; ++i){

int randomInt = randomGenerator.nextInt(35);

Message1(" " + randomInt);

}

So my problem is this. I would really like to know if there is a way to stop Random from generating the same number twice in the same method. And also to stop it from generating the same number twice in both methods.

What I mean is, if the number 8 is generated in the first method I'd like it to be generated once only in both the same method(lotto1) and the second metod.(lotto2) I would love some help.

Thank you