Is there an efficient way of choosing a random number where the result is weighted in favour of one end of the scale?
For instance, when getting a random number between 1 and 100, then number 1 is 100 times more likely to come up than the number 100, but only 50 times more likely to come up than the number 50.
For instance, when getting a random number between 1 and 100, then number 1 is 100 times more likely to come up than the number 100, but only 50 times more likely to come up than the number 50.