mardi 14 novembre 2017

How to make a number generator that will pick numbers based on the percent (Python) [duplicate]

This question already has an answer here:

How would I make a program that will randomly pick numbers based on the percent e.g. it has a 10% chance of picking 5, 60% chance of picking 6, 15% chance of picking 7 or 8.

Any help will be much appreciated.




Aucun commentaire:

Enregistrer un commentaire