samedi 2 mai 2020

Increasing / decrasing chance on random module

For example I am programming a game . I need some money . Chests is free but keys is paid . How can I increase the chance of key needed premium chest and how can I decrase the chance of fully free premium chest

import random 

list1 = ["fully free premium chest", "key needed premium chest", "fully free normal chest"]


random.choice(list1)



Aucun commentaire:

Enregistrer un commentaire