Skip to content

Latest commit

 

History

History
95 lines (54 loc) · 1.23 KB

CppStdRandom_shuffle.md

File metadata and controls

95 lines (54 loc) · 1.23 KB

 

 

 

 

 

 

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.

 

 

 

 

 

 

 

 

 

 

 

Examples

 

 

 

 

 

 

 

  1. Working Draft, Standard for Programming Language C++. 2014-08-22. N3936. Paragraph D.12. 'The function templates random_shuffle are deprecated'
  2. Stephan T. Lavavej. 'rand() Considered Harmful'. 2013. GoingNative 2013