Description
random_shuffle() shuffles the elements in its sequence, using a uniform distribution random number generator.
Declaration
template <class Ran> void random_shuffle(Ran, Ran); template <class Ran, class Gen> void random_shuffle(Ran, Ran, Gen&);
Concept
The sample program defines a vector of integers and then shuffles it, to produce a random ordering of the elements.
Special Notes:
You can specify your own generator, for example one that assumes a different distribution of values.
Supported
Supported
Supported