My question is not about a specific language but rather how to solve a problem.
How can I generate random numbers but with different probabilities of coming out, for example,
5 --> 63%
10 --> 29.99%
25 --> 7%
50 --> 0.01%
80 --> 0.0001%
The percentages are taken from a game as an example, nothing more.