title: How do i make the even numbers shuffle or randomized?
body: <p>I'm trying to make the even numbers appear shuffled or randomized any ideas? I tried pitting it into an array but it got too complicated too fast.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
  
      &lt;script&gt;
  
        function printEvenNums()
  
        {
                  var start = document.getElementById("start").value;
          var end = document.getElementById("slut").value;
          var evenNums = "&lt;br&gt;Jämna nummer:&lt;br&gt;";
  
          for(i=start; i&lt;=end; i++)
          {
  
            if(i % 2 == 0)
            {
              evenNums += i + "&lt;br&gt;";
            }
          }
  
          document.getElementById("result").innerHTML = evenNums;
        }
  
      &lt;/script&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h3&gt;Grisen kan programera :)&lt;/h3&gt;
      Start: &lt;input type="number" min="0" id="start" value="1" /&gt;
      Slut: &lt;input type="number" id="slut" min="1" value="20" /&gt;
      &lt;input type="button" onclick="printEvenNums()" value="Få fram jämna nummer" /&gt;
      &lt;div id="result"&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>