https://en.wikipedia.org/wiki/Alias_method
but they don't seem to reduce each choice (1-10) to just two options.