#include #include #include #include void testShuffle() { std::vector nums(75); for ( int i = 1; i <= 75; ++i ) nums.push_back(i); //std::srand( std::time(nullptr) ); //std::random_shuffle(nums.begin(), nums.end()); std::random_device rd; std::mt19937 g(rd()); std::shuffle(nums.begin(), nums.end(), g); for (size_t i = 0; i < nums.size(); ++i ) std::cout << nums[i] << ", "; std::cout << std::endl; } int main() { testShuffle(); return 0; }