title: Javascript random text generate randomly
body: <p>I want create javascript random script which makes random text which every text has assigned random integer to it. and everything will be separated by , i.e
  es45d4dw 2, hrt54345 5, etc.
  Every item should be generated at random different time from range. How can i do that?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myVar = setInterval(myFunction, getRndInteger(1000, 10000));
  
  function getRndInteger(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  }
  
  function myFunction() {
    var para = document.createElement("t");
    var t = document.createTextNode(makeid());
    para.appendChild(t);
    document.body.appendChild(para);
  }
  
  function makeid() {
    var text = "";
    var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  
    for (var i = 0; i &lt; 10; i++)
      text += possible.charAt(Math.floor(Math.random() * possible.length));
  
    return text;
  }</code></pre>
  </div>
  </div>
  </p>