I have a file that can generate random numbers in a given interval
random.randint(0,30)
I want to assign certain intervals a distribution, such that for example
0-9 has a 50% chance of occurring, 10-19 has a 30% chance of occurring and 20-29 has a 20% chance of occurring.
Thanks in advance! :)
Aucun commentaire:
Enregistrer un commentaire