Created
April 26, 2017 07:37
-
-
Save deque-blog/65c507561f71078a89556d163fe457dd 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
std::vector<Weighted<char>> weighted_letters = { | |
{'a', 2}, {'b', 1}, {'c', 1}, {'d', 1}, {'e', 2} | |
}; | |
auto weighted_letters_gen = weighted_choice_gen(weighted_letters); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment