diff options
Diffstat (limited to 'base/random.hpp')
-rw-r--r-- | base/random.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/random.hpp b/base/random.hpp new file mode 100644 index 0000000000..b17189e36c --- /dev/null +++ b/base/random.hpp @@ -0,0 +1,9 @@ +#pragma once + +#include <random> +#include <vector> + +namespace my +{ +std::vector<size_t> RandomSample(size_t n, size_t k, std::minstd_rand & rng); +} // my |