|
Boost Users : |
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2007-07-08 20:01:31
On 08/07/07, Jeffrey Holle <jeffreyholle_at_[hidden]> wrote:
> I am looking for a function that randomly selects a permutation of a
> sequence. For instance given "1,2,3", it would produce something like
> "2,1,3" randomly selected from all possible permutations.
>
Would std::random_shuffle do the job?
http://www.roguewave.com/support/docs/sourcepro/edition9-update1/html/stdlibref/random-shuffle.html
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net