jeudi 19 novembre 2015

How to avoid getting duplicates in deck of cards [duplicate]

This question already has an answer here:

So I'm trying to deal cards with my really small knowledge. I can randomize a card but I don't want to get the same card twice. I tried using "arrays" with "if" but I couldn't do it. Any idea how can I manage this?




Aucun commentaire:

Enregistrer un commentaire