Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
auto int_vector_gen = make_vector_gen(10, int_gen(1000));
auto int_pair_gen = make_tuple_gen(int_gen(100), int_gen(1000));
auto int_pair_vector_gen = make_vector_gen(20, int_pair_gen);
// Example code
std::mt19937 gen = ...;
int_vector_gen(gen);
//Outputs: [171,614,15,346,263,44]
int_pair_vector_gen(gen);
//Outputs: [(1, 280),(47, 218),(42, 867),(32, 119),(48, 396),(58, 82),(41, 576),(63, 108),(16, 108),(50, 216)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment