title: Randomly display dots
body: <p>I am trying to design a little game using JS, and what I want it to do is make a random number say... 1-100 and then randomly scatter the dots (I used periods with the font size at 200) on the screen. By random, I just mean that I don't want them to be arranged in rows and columns. What I have so far achieves all but scattering the dots, so how do I do that?</p>
  
  <pre><code>var i=0;
  var inhtml="."
  var num=10
  function exe(){
      i=Math.floor(Math.random()*100)
      //alert(i)
      while (i&lt;=100){
      document.getElementById("dot").innerHTML = inhtml + "."
      inhtml = document.getElementById("dot").innerHTML
      if (inhtml.length&gt;num){ 
          inhtml=document.getElementById("dot").innerHTML+"&lt;br /&gt;"
          num=num+20
      }
      i++;
      }
  }
  </code></pre>