lundi 13 avril 2015

python generating random integers with a certain chance of one number

I was wondering how to generate a random integer between 1 and 10 inclusive, 5 times but will have an 80% chance of one of the values being 1 once. Is it possible?


thank you





Aucun commentaire:

Enregistrer un commentaire