Challenge: Smaller to Larger Random Number Generator

Let’s say you have a random number generator RNG3() that uniformly returns from delim{lbrace;}{1, 2, 3}{rbrace;} and you must use it to build RNG7() that uniformly returns from delim{lbrace;}{1, 2, 3, 4, 5, 6, 7}{rbrace;}. How might you do it?

Hint
My Answer

Leave a Reply