shuffle() 알고리즘과 난수 엔진을 사용한다
vector<int> v { 1, 2, 3, 4, 5, 6, 7 };
shuffle( v.begin(), v.end(), mt19937(random_device()()) );
댓글