Generate array of random values

David Nadlinger see at klickverbot.at
Tue Aug 2 06:25:55 PDT 2011


On 8/2/11 6:42 AM, Jesse Phillips wrote:
>      auto arr = new int[1024];
>      fill(arr, randomCover(iota(0,1024), rndGen));

Note that this produces a random permutation of the numbers 0 to 1023, 
which may or may not be what you want.

David


More information about the Digitalmars-d-learn mailing list