I want to choose random numbers within a range of numbers, but with weighting towards part of that range. For example:
Is this possible? How would I do this?
It depends on how you want your probability distribution to look like.
For example:
Pick a random number between 1-10
If it is <= 6
Return a random number between 1-5
Else
Return a random number between 6-10
EndIf
Picks a number in 1-5 60% of the time and a number in 6-10 40% of the time.