I have an algorithm that depends on the generation of a random number. The thing is very simple: I generate a random number between 0 and 8 and do something different depending on the generated number.
Now I want to change my algorithm so that some numbers are more likely to occur than others: for example i want to have an higher chance of having 2, 6 or 7 then the other numbers. Anyone has a suggestion on how to implement that?
[italic]How beautiful, if Sorrow had not made sorrow more beautiful than Beauty itself.[/italic]