Skip to content

Instantly share code, notes, and snippets.

@mochow13
Created September 15, 2018 05:38
Show Gist options
  • Save mochow13/c334fbcaed286172e43ba7b283c8ceb6 to your computer and use it in GitHub Desktop.
Save mochow13/c334fbcaed286172e43ba7b283c8ceb6 to your computer and use it in GitHub Desktop.
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