Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created April 1, 2017 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/b4629af3ce53e2dda940ec2675682c3c to your computer and use it in GitHub Desktop.
Save deque-blog/b4629af3ce53e2dda940ec2675682c3c to your computer and use it in GitHub Desktop.
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