For code that uses std::random_shuffle, I need to set a random seed so that the pseudorandom sequences produced vary in each program run.
std::random_shuffle
The code example h
If you are using C++11, think about using std::shuffle instead of std::random_shuffle, and passing a random-number generator, as in the last example here
std::shuffle