Faster uniform() in [0.0 - 1.0(
bearophile
bearophileHUGS at lycos.com
Mon Nov 22 18:32:12 PST 2010
Don:
> Since the probability of actually generating a
> zero is 1e-4000, it shouldn't affect the speed at all <g>.
If bits in double have the same probability then I think there is a much higher probability to hit a zero, about 1 in 2^^63, and I'm not counting NaNs (but it's low enough to not change the substance of what you have said).
Bye,
bearophile
More information about the Digitalmars-d
mailing list