title: Adding numbers instead of adding increment
body: <p>I have a small script that increments the number by the number in a given time period. If incrementing by one <strong>value++</strong> works, if I want to add another value of the type generated by the math.random function instead of adding, add to the existing value. How can I change this? I want the generated number to add to an existing value in innerHTML.</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>document.getElementById("data-gen").innerHTML = Math.floor((Math.random() * 100000) + 1) + Math.floor((Math.random() * 100) + 1);
  
  nowResources = function() {
    document.getElementById("data-gen").innerHTML += Math.floor((Math.random() * 10) + 1);
    setTimeout(nowResources, 1000);
  }
  
  nowResources();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span id="data-gen" style="color: #da5cb2;"&gt;&lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>