std::random_shuffle is an STL algorithm to shuffle all elements in a container.
std::random_shuffle is labelled deprecated in the C++14 Standard [1] and is planned for removal in C++17. Use std::shuffle instead.
- Avoid using std::random_shuffle, use std::shuffle instead [2]
- Working Draft, Standard for Programming Language C++. 2014-08-22. N3936. Paragraph D.12. 'The function templates random_shuffle are deprecated'
- Stephan T. Lavavej. 'rand() Considered Harmful'. 2013. GoingNative 2013