samedi 9 avril 2022

How to make sure items in list do not repeat in JavaScript [duplicate]

for (var i = 0; i < 3; i++) { var newTeam = randomNumber(0,30);

In this code, how do I make sure the randomly chosen numbers do not repeat? (for example: after 1 is being chosen, it will not be picked again)




Aucun commentaire:

Enregistrer un commentaire