lundi 19 octobre 2020

Not equal random numbers in js [closed]

How can I make these four random numbers not equal?

var rand = Math.floor(Math.random() * 3);
    var rand1 = Math.floor(0 + Math.random() * 3);
    var rand2 = Math.floor(0 + Math.random() * 3);
    var rand3 = Math.floor(0 + Math.random() * 3);



Aucun commentaire:

Enregistrer un commentaire