>> Since you're running the program a few seconds apart, random_shuffle() must use its own random number generator (and not rand()).
i was reading up on random_shuffle a little earlier and there are two different usages..
couldnt find anything on RandomNumberGenerator& rand thoughCode:void random_shuffle (RandomAccessIterator first, RandomAccessIterator last, RandomNumberGenerator& rand); void random_shuffle (RandomAccessIterator first, RandomAccessIterator last);
and yes it does not depend on rand being initialized.. as it gives same results if you remove it...