Generate array of random values

bearophile bearophileHUGS at lycos.com
Mon Aug 1 11:55:30 PDT 2011


David Nadlinger:

> if you do need a limit, that would be 
> array(map!"a % 1024"(take(rndGen(), 1024))).

% doesn't give an uniform distribution.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list