28 Oct
2012
28 Oct
'12
9:39 a.m.
If you want to measure the randomness of something...
No, that wasn't my question. I just want to know if I'm using boost random correctly/optimally in my code below. Are there any programmers here who can answer that? On 10/27/2012 9:30 PM, Robin Rowe wrote:
boost::random::mt19937 rng; boost::minstd_rand lcggen; lcggen.seed(clockTime); rng.seed(lcggen); unsigned min=1; unsigned max=15; for(unsigned i=0;i<5;i++) { boost::random::uniform_int_distribution<> dist(min,max); const int j = dist(rng); ... code that shuffles stuff using j ... min++; cout<
Thanks, Robin -- www.CinePaint.org