poor random shuffle
Posted: Dec 15, 2012
The shuffle algorithm is very poor! To observe this play sea towers. Repeatedly deal (don't play) New - Esc, New - Esc etc.
Observe the locations of the aces. They fall predominately in the top row, decreasing toward the bottom. Also note that lower value cards also are predominate in the upper rows. If you keep score of aces by row and apply statistical tests to the result it significantly non-random. It is expected that the aces ( or any other card ) should be fairly evenly distributed among all five rows.
In playing sea towers this makes it more difficult than it should be with a thoroughly shuffled deck.
There are many good random number generator algorithms available. Yours needs improvement.
Observe the locations of the aces. They fall predominately in the top row, decreasing toward the bottom. Also note that lower value cards also are predominate in the upper rows. If you keep score of aces by row and apply statistical tests to the result it significantly non-random. It is expected that the aces ( or any other card ) should be fairly evenly distributed among all five rows.
In playing sea towers this makes it more difficult than it should be with a thoroughly shuffled deck.
There are many good random number generator algorithms available. Yours needs improvement.