thats cool. it definitely works, but im still not quite sure why. if the first iteration is 3/10=.3 and it doesnt find a match the next iteration is 3/9=.33 and it does find a match the next iteration is 2/8=.25 ...and so on. So the probability doesn't stay the same, but i guess over 10000 repetitions it evens out? I suppose it doesn't matter, at the end of the day its still a random sample.
... View more