I am trying to find a solution that can generate three random numbers. At the moment I have this that generates a random number that is different from $randNum; The numbers need to be different from each other and also different from the variable $randNum
Thank you
$wrong = $randNum;
while ($wrong == $randNum) {
$wrong = rand(0,$max - 1);
}
Aucun commentaire:
Enregistrer un commentaire