title: How do I make a list print random numbers with the same sentence 5 times?
body: <p>I need to print a line 5 times like this.....</p>
  
  <pre><code>I just burped 5 times.
  I just burped 5 times.
  I just burped 5 times.
  I just burped 5 times.
  I just burped 5 times.
  </code></pre>
  
  <p>However I need to make sure the numbers are different in each line. For example:</p>
  
  <pre><code>I just burped 5 times.
  I just burped 7 times.
  I just burped 1 times.
  I just burped 9 times.
  I just burped 6 times.
  </code></pre>
  
  <p>the code that I have right now looks like this</p>
  
  <pre><code>&lt;h3 style="position: absolute;left:118px;top: 88px;"
      onClick="myFunction()"&gt;&lt;button onclick = "myFunction()"&gt; Click Me &lt;/button&gt;&lt;/h3&gt;
  
  
      &lt;div id="same"&gt;&lt;/div&gt;
  
  
  
      &lt;script&gt;
  
          function myFunction() {
              var x = Math.floor((Math.random() * 10) + 1);
              var text= " ";
              var i;
              for(i=0; i&lt;5; i++){
                  text += "The number of times I just burped is " + x +"&lt;br&gt;&lt;br&gt;";
              }
              document.getElementById("same").innerHTML = text ;  
          }
  
      &lt;/script&gt;   
  
  
  
  &lt;/body&gt;
  </code></pre>
  
  <p>Can anyone help with this? </p>