Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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