I'm trying to come up with some pseudo code for spitting out numbers randomly, with weights.
So, I want to randomly spit out 1-10. But I want 1-6 to happen 75% of the time, 7-9 to happen 20% of the time and 10 to only happen 5%.
Basically I want there to be adjustable weights on the return. Any thoughts on this?