When it enters the vector and the number is not in the array it shows me "I do not win a match" the 12 times the vector travels. I want it to only show me once, I do not win and I keep doing the rest of the instructions
int azar = (int) (Math.random() * 38 + 0);
int[] veinticincos = {25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36};
for (int i = 0; i <= 11; i++) {
if (azar == veinticincos[i]) {
System.out.println("Usted gano y su numero es" + azar);
} else {
System.out.println("no gano parcero");
}
}