Sorry I thought I made it clear. I don't know how many iterations it will take. I just want it to stop once ANY number is drawn 3 times. not randomly generate 3 numbers. For example, 1, 2, 3 continue loop because no number is generated for 3 times. 1, 2, 3, 1, 2, 3, continue loop because no number is generated for 3 times. 1, 2, 3, 1, 2, 3,1, leave because number 1 is drawn 3 times. The only chance it takes 20 iterations is each number (from 1 to 10) is generated 2 times. And then for the 21st iteration no matter which number it generates it will be the 3rd appearance so exit the loop. That's why I set the loop at 20 iterations.
... View more