vendredi 4 décembre 2015

how can generate a random number that isn't equal to some values in jquery

is there any easy way to generate a random value that is not equal to some values

for example i want generate a value between 1 to 10

Math.floor(Math.random() * 10) + 1;

and i want it is not be equal to 3,4,7

how can do that? thank you




Aucun commentaire:

Enregistrer un commentaire