![]() |
mutable
A Database System for Research and Fast Prototyping
|
Utilities to help generate data, e.g. More...
Functions | |
template<typename T , typename Generator = std::mt19937_64> | |
std::vector< T > | generate_uniform_distinct_numbers (const T min, const T max, const std::size_t count, Generator &&g=Generator()) |
Generate count many distinct numbers of type T , chosen uniformly at random from the range [min , max ]. | |
Utilities to help generate data, e.g.
for experiment setups.
std::vector< T > m::datagen::generate_uniform_distinct_numbers | ( | const T | min, |
const T | max, | ||
const std::size_t | count, | ||
Generator && | g = Generator() |
||
) |
Generate count
many distinct numbers of type T
, chosen uniformly at random from the range [min
, max
].
Uses generator g
for randomness in the data.
Definition at line 17 of file datagen.hpp.
References M_insist, and m::gs::LinearSpace< T >::sequence().