![]() |
VCCC
2024.05
VisualCamp Common C++ library
|
Go to the source code of this file.
Namespaces | |
vccc | |
Functions | |
template<typename T , typename Container = std::vector<T>> | |
Container | random_sample (T a, T b, T k, std::mt19937 &&gen=std::mt19937(std::random_device{}())) |
get shuffled random sample in [a, b], size k More... | |
template<typename T , typename Container = std::vector<T>, typename Generator > | |
Container | random_sample (T a, T b, T k, Generator &&gen) |