Randomize a List problem
|
09-15-2020, 01:00 AM
Post: #6
|
|||
|
|||
RE: Randomize a List problem
(09-14-2020 08:51 PM)Hlib Wrote: FOR n t RAND ... then after many clicks we may get all set of lists (6 for #3 and 24 for #4). For a list of 3 items, we have 3! = 6 permutations. But, your suggested shuffling can have 3*3*3 = 27 ways. By the pigeonhole principles, some will appear more often, some less (*) Starting from {3,2,1}, and gone thru all 27 possible ROLLD shuffling, we have: {3,2,1} × 5 {2,3,1} × 4 {3,1,2} × 5 {1,3,2} × 5 {2,1,3} × 4 {1,2,3} × 4 Shuffling will not be fair. I did a simulation, and confirmed this. (*) even if one divides the other, there is still a possibility of unfair shuffling, depending on shuffling details. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)