9 Jul
2007
9 Jul
'07
8:42 p.m.
Thanks for this! After testing the 3 parameter variant of random_shuffle, with the appropriate seed, I see that it do the job. Scott McMurray wrote:
On 08/07/07, Jeffrey Holle
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/stdlib...