J
Jacob Fugal
=20
If by definition a random sample has to be uniform over the
range/population it samples, you are correct. Although even by such
definition it's possible that the last number would be this low in a
uniform sampling, the odds are very low. And I know that my script
doesn't uniformly sample the range, as I said before. I coded it to
be fast yet still meet the letter of the requirements.
We can concede this. I still believe that the *spirit* of the
requirements was a Uniform Random Distribution.
... and neither is any algorithm that
frequently generates 999999xxx for the last several entries.
This statement I contest. I showed in my other post that the
probability the last number is 999999xxx is greater than 99%.
Expanding that calculation (I can show the work upon request) the
probability all the last ten numbers being 999999xxx is 93.5%. Getting
small enough that you'll see some 999998xxx numbers in the last ten
every now and then, but still quite likely. Chances that you'll see a
999997xxx number in the last ten: 0.05% (about once out of every 2000
trials)
Jacob Fugal