title: Math random add subtract counter limited between a range of numbers
body: <p>can you help me out on how to limit the below to stay within a min and max range eg 3 - 10</p>
  <pre><code>&lt;div id=&quot;number&quot;&gt;3&lt;/div&gt; 
  
    setInterval(function(){
      random = (Math.floor((Math.random()*1)+1));
      var plusOrMinus = Math.random() &lt; 0.5 ? -1 : 1;
      random = random * plusOrMinus; 
      currentnumber = document.getElementById('number');
  
      document.getElementById('number').innerHTML =  parseInt(currentnumber.innerHTML) + random;
  
   }, 1000);
  </code></pre>