title: Can't figure out how to randomly generate numbers with a button in javascript
body: <p>followed a tutorial just with different layout and names and still can't seem to find whats wrong?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;script&gt;
        function myrandom() {
          var x = math.floor((math.random() * 10) + 1);
          document.getElementById("rand").innerHTML = x;
        }
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;button onclick="myrandom()"&gt;Generate&lt;/button&gt;
      &lt;p id='rand'&gt;&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>