title: What does if random.randint(0,1) mean?
body: <p>I was reading "Foundation of python network programming, 2nd edition". And I found in page 22 a sentence which confused me. It's simplified version is  like below:</p>
  
  <pre><code>import random
  # blah blah blah #
  if random.randint(0,1):
      print "blah blah blah"
  </code></pre>
  
  <p>what does <code>random.randint(0,1)</code> do here? Does 0 equal False and 1 equal True here?</p>