random_shuffle

The function random_shuffle is used to exchange the order of the elements in a random fashion.

  template<class RandomAccessIterator>
  void random_shuffle
  (RandomAccessIterator first,RandomAccessIterator last);
  template<class RandomAccessIterator,
  class RandomNumberGenerator>
  void random_shuffle
  (RandomAccessIterator first, RandomAccessIterator last,
  RandomNumberGenerator& rand);
  
Remarks

No value is returned.