Range of random numbers

bearophile bearophileHUGS at lycos.com
Mon Apr 23 14:00:28 PDT 2012


> Count(5) is easy to replace with iota(5, int.max),

This also means that for the OP problem, using repeat(0) is more 
correct than using count(), because count on default yields ints, 
that are limited to about 2 milliards.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list