note
syphilis
<i>IIUC it's just (N/4294967296)**4</i><br><br>
I believe the figure I should have provided is:<br>
(1 - ((4294967295/4294967296) ** N)) ** 4<br><br>And if that's not right, I give up.<br><br><b>Update: </b>The logic is simple. (Danger, Will Robinson ;-)<br>If you're picking numbers at random in the range (1 .. 4294967296), then the probability that the N+1th pick has already come up is:<br>
1 minus the probability that it has *not* already come up<br>and the probability that it has *not* already come up is (4294967295/4294967296) ** N<br><br>So that gives us the<br>
1 - ((4294967295/4294967296) ** N)<br><br>But because we're looking for the case where all *4* numbers have already come up, that probability needs to be raised to the 4th power ... which yields the final figure. <br><br>Cheers,<br>Rob
962802
962806