I Hand Shuffling reliable? If you are thinking this question, or you like card games, it is good for you to read this post.
Hand Shuffling
Originally, the hand shuffling has three steps.
- Split the cards into two separated parts.
- Merge these two parts, one card by one card. If these two parts have different numbers of cards, leave the extra cards on the top.
- Repeat the steps above, for several times.
How to evaluate
To evaluate the simulation, I set the number of cards to 52. Thus, we exclude the jokers. At the beginning, the cards are ordered in the same way. Then we shuffle them several times, and record the position of each card. The testing will repeat thousands of time. Ideally, one card will locate at every position with equal probabilities. Standard Deviation will be used to measure how the shuffling algorithm works.
Read full article from Is Hand Shuffling reliable?
No comments:
Post a Comment