| 33 | } |
| 34 | |
| 35 | auto random_vec(std::type_identity<int>, std::size_t n) -> std::vector<int> { |
| 36 | |
| 37 | std::vector<int> out(n); |
| 38 | |
| 39 | lf::xoshiro rng{lf::seed, std::random_device{}}; |
| 40 | std::uniform_int_distribution<int> dist{0, std::numeric_limits<int>::max() / (static_cast<int>(n) + 1) / 2}; |
| 41 | |
| 42 | for (auto &&elem : out) { |
| 43 | elem = dist(rng); |
| 44 | } |
| 45 | |
| 46 | return out; |
| 47 | } |
| 48 | |
| 49 | auto random_vec(std::type_identity<std::string>, std::size_t n) -> std::vector<std::string> { |
| 50 |