Initialize std::rand() for GMR