quasi wrote: > rossum <email@example.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().