title: get random number between 400 and 480 in javascript
body: <p>i am confused about <code>Math.Random()</code> in javascript in know that this function will return a number between <code>0</code> and <code>1</code></p>
  
  <p>i am trying to return a number between 400 and 500 and what i did is this : </p>
  
  <pre><code>var y = Math.floor((Math.random() * 400) + 100);
  </code></pre>
  
  <p>but this code may return a value of <code>100</code> or <code>200</code> 
  what is the best practice to create a number where the minimum is <code>n0</code> and maximum is <code>n1</code> </p>