note
Anonymous Monk
You have a bad shuffle. It does not give equal odds of all combinations coming up. It trivially cannot, if your array has n elements then all of your probabilities have to be multiples of 1/n**n which does not evenly divide n! - the number of possible permutations you are choosing between.<p>
How to do it right is a [How Do I Shuffle An Array Randomly?|FAQ].
210389
210392
39