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);
66 #endif // WFMATH_SHUFFLE_H Generic library namespace.
Definition: atlasconv.h:45
void Shuffle(std::vector< C > &v)
Randomly reorder the contents of a std::vector.
Definition: shuffle.h:40