Created
April 1, 2017 13:56
-
-
Save deque-blog/b4629af3ce53e2dda940ec2675682c3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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