Well, I think I already managed to accomplish what I wanted to thank everyone for my only doubt is if a new number is generated whenever the user inserts a new guess, here is the new code:
System . out . println("Indique um valor minimo");
int min = scanner.nextInt();
System . out . println("Indique um valor máximo");
int max = scanner.nextInt();
System . out . println("Vão agora ser gerados números entre " + min + " e " + max);
double rand = Math.random();
int entreMinEMax =(int) (min +(max - min + 1) * rand);
int palpites = 0;
int acertou = 0;
int errou = 0;
do
{
System . out . println("Indique o seu palpite:");
int palpite = scanner.nextInt ();
if (palpite == entreMinEMax)
{
acertou++;
}else
{
errou++;
}
palpites++;
}while(palpites<10);
System . out . println ("Acertou " + acertou + " " + (acertou/10)*100 + "%");
System . out . println ("Errou " + errou + " " + (errou/10)*100 + "%");