repeating random number sequences.

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Aug 28 09:18:01 PDT 2013


On Tuesday, 27 August 2013 at 12:59:19 UTC, Jason den Dulk wrote:
> Hi
>
> This code
>
>   foreach (j; 0..5)
>     writeln(rndGen().take(5));
>   writeln(uniform(0, 1024));
>   foreach (j; 0..5)
>     writeln(rndGen().take(5));

What monarch said, though std.range.refRange() may be of interest:

http://dlang.org/phobos/std_range.html#.refRange


More information about the Digitalmars-d-learn mailing list