Some of you seem to think that the shuffling in my Euchre game is how shall we say, unfair? Shuffling a deck is pretty simple stuff, so I’ve always been a little suspect of those claims. Maybe the random number generator I was using wasn’t that good? What if my algorithm had flaws in it?
I wrote a test case for it and performed 100,000 shuffles. I then counted up how many times you were dealt each card. If the shuffling was good, all the numbers should be roughly the same. Here are the results:
|
You |
Left Opponent |
Partner |
Right Opponent |
| Ace |
83059 |
83640 |
83344 |
83236 |
| 9 |
83469 |
83125 |
83009 |
83713 |
| 10 |
83116 |
83260 |
83407 |
83739 |
| Jack |
83710 |
82848 |
83360 |
83222 |
| Queen |
83445 |
83392 |
83711 |
83101 |
| King |
83201 |
83735 |
83169 |
82989 |
So you can clearly see that the shuffling is statistically random. Added up it equals 2,000,000 cards worth (100,000 shuffles * 20 cards/shuffle). Looks pretty fair to me!
So all you people who think you always get 9s and 10s – you don’t!