replace, replace_if, replace_copy, and replace_copy_if


template <class RandIter>    void random_shuffle(RandIter start, RandIter end);template <class RandIter, class Generator>     void random_shuffle(RandIter start, RandIter end,                         Generator rand_gen);

The random_shuffle( ) algorithm randomizes the sequence defined by start and end.

The second form specifies a custom random number generator. This function must have the following general form:


It must return a random number between zero and num.

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: