Generate array of random values

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Aug 2 05:08:28 PDT 2011


On 8/2/11, Pelle <pelle.mansson at gmail.com> wrote:
> Without UFCS, well, how would you want it to look?

Maybe..

auto max = 1024;
auto len = 1024;

arr = rndRange(max)[0..len];

IOW, using the slice operator instead of a call to array().


More information about the Digitalmars-d-learn mailing list