mercredi 5 décembre 2018

How to skew random choice probability towards one option?

I am using the random library in python to select win or lose.

import random

choice = random.choice(['win','lose'])

Is there anyway I can say set the probability in the code to say I want more lose than win everytime the code runs?




Aucun commentaire:

Enregistrer un commentaire