26 #ifndef WFMATH_SHUFFLE_H
27 #define WFMATH_SHUFFLE_H
29 #include <wfmath/MersenneTwister.h>
42 typedef typename std::vector<C>::size_type size_type;
43 size_type pos = v.size();
55 size_type new_pos = MTRand::instance.randInt(pos);
Generic library namespace.
void Shuffle(std::vector< C > &v)
Randomly reorder the contents of a std::vector.