Simple problem: precentage_chance = 0.36
if <don't know what>:
#action here has 36% chance to execute
pass
How can i solve this problem?
Simple problem: precentage_chance = 0.36
if <don't know what>:
#action here has 36% chance to execute
pass
How can i solve this problem?
You could use random.random:
>>> import random
>>> if random.random() < percentage_chance:
print('aaa')