shuffle vector c++

C++
std::shuffle(container.begin(), container.end(), std::random_device());
Source

Also in C++: