title: Percentage chance to make action
body: <p>Simple problem:</p>
  <pre><code>percentage_chance = 0.36
  
  if some_function(percentage_chance):
     # action here has 36% chance to execute
     pass
  </code></pre>
  <p>How can I write <code>some_function</code>, or an expression involving <code>percentage_chance</code>, in order to solve this problem?</p>