default random object?

Walter Bright newshound1 at digitalmars.com
Sat Feb 14 03:04:36 PST 2009


Andrei Alexandrescu wrote:
> auto big = uniform(rng, uint.max / 2, uint.max);
> 
> If the interval is open I can't generate uint.max.


auto big = uniform(rng, uint.max / 2 - 1, uint.max) + 1;



More information about the Digitalmars-d mailing list