VCCC  2024.05
VisualCamp Common C++ library
pick.hpp File Reference
#include <unordered_set>
#include <random>
#include <type_traits>

Go to the source code of this file.

Namespaces

 vccc
 

Functions

template<typename T , typename Container = std::unordered_set<T>, typename RandomGenerator >
Container pick_k (T a, T b, T k, RandomGenerator &&gen)
 pick k from int range [a, b] (no duplicates) More...