title: Getting range of numbers
body: <p>I was wondering if someone could help me out.</p>
  
  <p>I need to work out a range that a dynamic number sits in.</p>
  
  <p>For example, i have a script like so</p>
  
  <pre><code>&lt;% upperlimit = 50000.0 %&gt;
  &lt;% lowerlimit = -30000.0 %&gt;
  &lt;%=Int((upperlimit - lowerlimit + 1)*Rnd() + lowerlimit) %&gt;
  </code></pre>
  
  <p>This spits out the value 30366.</p>
  
  <p>The upperlimit and lowerlimit are dynamic so i dont know what the output would be.</p>
  
  <p>This value is in the range 30001 - 40000 ... How can i get those values dynamically?</p>
  
  <p>Cheers</p>