Answer the question
In order to leave comments, you need to log in
Random event python?
How can you make a function so that, for example, 1 is returned with a 1% chance, 2 is returned with a 99% chance, and so on. It is advisable to do the setting through a dictionary like .
ps It is possible through not office. libraries, but better without them. {0.01: 1, 0.99: 2}
Answer the question
In order to leave comments, you need to log in
Here is the link
https://stackoverflow.com/questions/4265988/genera...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question