title: Need help Creating a coinflip in html/js that will return an image for each flip
body: <p>Basically I want to be able to press a button on my webpage that simulates a 50/50 coin toss. I need a heads and tails image to return depending on the outcome.</p>
  
  <p>I started off with this: </p>
  
  <pre><code>&lt;script&gt; function coinFlip() { return Math.floor(Math.random() * 2); } &lt;/script&gt;
  </code></pre>