random cover of a range

bearophile bearophileHUGS at lycos.com
Fri Feb 13 15:47:36 PST 2009


Jason House:
> Believe it or not, that's an unreasonable requirement. IIRC, most RNG's have periods such as 2^32. You can't get more permutations than that. Somewhere in the ballpark of 17 elements, your requurement becones impossible to meet without a highly specialized RNG. I hope someone can prove me wrong about that!<

Mersenne Twister has a period much longer, if you want.
For even longer permutations you have to generate them in a different way.

Bye,
bearophile



More information about the Digitalmars-d mailing list