Generate array of random values

David Nadlinger see at klickverbot.at
Mon Aug 1 12:10:09 PDT 2011


On 8/1/11 8:55 PM, bearophile wrote:
> David Nadlinger:
>> array(map!"a % 1024"(take(rndGen(), 1024))).
>
> % doesn't give an uniform distribution.

I'd argue it does with 1024… ;)

David


More information about the Digitalmars-d-learn mailing list