Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) std::random_shuffle

 

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.

 

 

 

 

 

Advice

 

 

 

 

 

 

Examples

 

 

 

 

 

 

References

 

  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

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict