title: How do you get exactly 50% odds?
body: <p>Which of these will give an <em>exactly</em> 50% chance when a random value is a float between 0 and 1 (such as AS3's or JavaScript's <code>Math.random()</code>)? I have seen both of them used in practice:</p>
  
  <pre><code>if (Math.random() &gt; 0.5) ...
  if (Math.random() &gt;= 0.5) ...
  </code></pre>
  
  <p><strong>Heads up:</strong> I'm being pedantic here, because in practice, hitting exactly <code>0.5</code> is astronomically low. However, I would still like to know where is the middle of <code>0 inclusive</code> and <code>1 exclusive</code>.</p>