Generating Strings with Random Contents
Brad Anderson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 14 16:10:49 PDT 2014
On Monday, 14 July 2014 at 22:32:25 UTC, bearophile wrote:
> Brad Anderson:
>
>> Alternative:
>>
>> randomSample(lowercase, 10, lowercase.length).writeln;
>
> From randomSample docs:
>
>>Selects a random subsample out of r, containing exactly n
>>elements. The order of elements is the same as in the original
>>range.<
>
> Bye,
> bearophile
Hmm, good catch. Not the behavior I expected.
More information about the Digitalmars-d-learn
mailing list