Template Function mrpt::random::randomPermutation

Function Documentation

template<class T>
void mrpt::random::randomPermutation(const std::vector<T> &in_vector, std::vector<T> &out_result)

Returns a random permutation of a vector: all the elements of the input vector are in the output but at random positions.