title: Randomness in Python
body: <p>I'm using <code>random.random()</code> to get a random float (obviously!).  But what I really want to do is something like:</p>
  
  <pre><code>there's a 30% chance my app does this:
    pass
  else:
    pass
  </code></pre>
  
  <p>Can you guys help me structure this?</p>