Program Listing for File Random.hpp

Return to documentation for file (include/lvr2/util/Random.hpp)

/*
 * Random.hpp
 *
 *  @date 14.07.2017
 *  @author Johan M. von Behren <johan@vonbehren.eu>
 */

#ifndef LVR2_UTIL_RANDOM_H_
#define LVR2_UTIL_RANDOM_H_

#include  <random>
#include  <iterator>

namespace lvr2
{

template<typename Iter, typename RandomGenerator>
Iter select_randomly(Iter start, Iter end, RandomGenerator& g);

template<typename Iter>
Iter select_randomly(Iter start, Iter end);

} // namespace lvr2

#include "lvr2/util/Random.tcc"

#endif // LVR2_UTIL_RANDOM_H_