22 template<
class RandomIt,
class URBG>
25 typedef typename std::iterator_traits<RandomIt>::difference_type diff_t;
26 typedef std::uniform_int_distribution<diff_t> distr_t;
27 typedef typename distr_t::param_type param_t;
30 for (diff_t i =
n - 1; i > 0; --i)
37 template <
class RandomIt>
40 std::random_device rd;
void shuffle(RandomIt first, RandomIt last, URBG &&g)
Uniform shuffle a sequence.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.