Created
September 15, 2018 05:38
-
-
Save mochow13/c334fbcaed286172e43ba7b283c8ceb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::vector<int> collection={1,2,13,5,12,3,4}; | |
std::random_device rd; | |
std::mt19937 rand_gen(rd()); | |
std::shuffle(begin(collection), end(collection), rand_gen); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment