Published: May 31 2008 / 08:03
Collections.shuffle() nor the suggested algoritme is very good.
Real card decks are shuffled by hand, meaning you take a part of the deck and place it on top.
Random shuffles will impact game, since the cards are too random...
Hand Shuffling is not good if not done scientifically.
A normal poker shuffle involve multiple standard shuffles.
The Knth algorithm is perfect if we could find a random number between 0 and N, which is not theoretically possible using computers. But to almost all practical purposes this should suffice
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Advertising - Terms of Service - Privacy - © 1997-2014, DZone, Inc.