Pourcentage de chance d'agir

Problème Simple:
percentage_chance = 0.36

if <don't know what>:
   #action here has 36% chance to execute
   pass

Comment puis-je résoudre ce problème?

source d'informationauteur methyl