lundi 19 janvier 2015

Generate x amount of random unique numbers between 1-52 in JavaScript

I'm currently making a card game in JavaScript and I need a function which draws x amount of unique random cards in an interval of 52 numbers (the deck). As of now I really can't think of a way to do this.





Aucun commentaire:

Enregistrer un commentaire