Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
auto int_gen(int max_size) {
return [=](std::mt19937& gen) -> int {
std::uniform_int_distribution<int> distribution(0, max_size);
return distribution(gen);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment