
Re: How to test a pseudo random prime number generator?
Posted:
Aug 19, 2007 6:05 PM


quasi wrote: > rossum <rossum48@coldmail.com> wrote: >> repeat >> n < random(lo, hi) >> until IsPrime(n) > > Yes, but it's not uniformly random on the set of primes in the range > lo .. hi. See my recent replies.
Yes it is. There's no reason for it to prefer any prime in the range over any other. It doesn't use nextprime().
 Ben

