Created
April 1, 2017 14:22
-
-
Save deque-blog/103ac010f4ccea45cd2100bd0f30c0d1 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_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