Quote:
Originally Posted by pkdk
That is true, I am mentally constructing of how maybe a program could random shuffle a virtual deck of cards. Quite clearly there would be a linear array of coordinate points of values of i, keystrokes etc changing the position of the value in the array?
I am having an uneducated guess
Let me generously help.
A computer shuffles a deck of cards like this:
1. Create an empty deck array that can hold 52 values.
2. Let integers 0 to 51 represent the deck of cards, so that 0 = 2c, 1=3c, etc.
3. Generate a random number between 0 and 51 inclusive, using an RNG.
4. Put that number in the first slot of our array.
5. Repeat step 3. If the result is not already in the array, put it in the next available slot, otherwise discard it and generate another one. Repeat until the array is filled.
Then you do this for every deck that needs to be dealt to play a game. Nowhere in there is anything programmed to even out the distribution. A normal distribution happens naturally, exactly like it does with a live shuffled deck.