x be a variable.
Lets say I have a coin and I flip it
If it lands on tails, I add one to
Given a source of uniformly distributed numbers (0 to 1), how map it to a number between 0 and
n so that the distribution of the random numbers is the same as the distribution of
x? Also, please provide a more general way to do this for a biased coin, with probability of tails being