I need to display an oddinput
random number within the range I set. I tried using a for loop with an if , but my program "thunders" .
This is what I have for now:
var min = 200;
var max = 300;
var semrandom;
semrandom = Math.floor(Math.random() * max) + min;
if ((semrandom % 2) == 0) {
continue;
}
document.getElementById('semilla').setAttribute("value", `${semrandom}`);
If it generates a random number, but not an odd random number . The question is, how can I get it?