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