title: How do I play a random music track one after the other on my blogger page?
body: <p>I want my blogger page to play a random music track and when a track ends have it followed by another randomly chosen music track.</p>
  
  <p>Here is what I tried:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;div id="soundtrack"&gt;&lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  var a = Math.random()*3;
  a = Math.floor(a);
  
  if(a==0)
  {
      document.getElementById('soundtrack')
          .innerHTML="&lt;audio autoplay&gt;&lt;source src='s0000.mp3' type='audio/mp3'&gt;Your browser does not support the audio element.&lt;/audio&gt;";
  }
  if(a==1)
  {
      alert(a);
      document.getElementById('soundtrack')
          .innerHTML="&lt;audio autoplay&gt;&lt;source src='s0001.mp3' type='audio/mp3'&gt;Your browser does not support the audio element.&lt;/audio&gt;";
  }
  if(a==2)
  {
       document.getElementById('soundtrack')
            .innerHTML="&lt;audio autoplay&gt;&lt;source src='s0002.mp3' type='audio/mp3'&gt;Your browser does not support the audio element.&lt;/audio&gt;";
  }
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>