Ranges and random numbers -- again

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jun 17 13:22:38 PDT 2013


On 6/17/13 3:32 PM, Joseph Rushton Wakeling wrote:
>      **************************************************************************
>      * Reading multiple times from the start of the same random range, should *
>      * produce different (and statistically independent) results each time.   *
>      **************************************************************************

I don't think that's a good rule.

A range that does that should be an input range, not a forward range. 
Calling .save on a random range and tracing the steps again should 
produce the same values.


Andrei



More information about the Digitalmars-d mailing list