06.06.2009, 14:59
I tried doing it like that but if you think about it then having the numbers in order (0, 1, 1, 2, 2, 2, 3, 3, 3, 3) makes the outcome bias; it's kind of like having all the 3s at the top in the hat, and then all the 2s below them, and then the 1s, and then the 0. What you want to do is have them nicely mixed up so what I probably need is a function that can shuffle them around so they end up looking something like this: 3, 0, 1, 3, 3, 2, 1, 2, 3, 2.