title: Assigning a random value to a variable
body: <p>I'm very new to code so I might not understand some answers.
  I'm having trouble turning a variable into a random number between 1 and 10 in this code.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var money = 0
  
  function Random() {
    money = Math.floor((Math.random() * 10) + 1);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I've read that I need to put <code>return</code> followed by the randomizing code somewhere but I just don't understand where I place that on how I use it.</p>