I'm trying to simulate a 52 card poker deck for my Blackjack server. What's the best or most efficient way to go about this? I want to create a deck with all the proper suits and cards dictated by probability but realistic probability, so that no more than 4 of the same card value can be picked, and picking a card will remove that card from the deck, thus lowering the active probability of drawing it again, while slightly boosting the odds for picking a different card.
Should I use script objects? Variables? Arrays? I know to use getRandom(0,12) to specify the face value, and probably getRandom(0,4) to specify suit, but I do still want to realistically represent card loss and drawing as accurate as possible.
Share solutions/ideas.