title: Create a random number between -100 and 100 in JavaScript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1527803/generating-random-numbers-in-javascript">Generating random numbers in Javascript</a>  </p>
  </blockquote>
  
  
  
  <p>I have the following code <code>var randomnumber=Math.floor(Math.random()*101);</code> that generates a random number for me between 1 and 100. What I would like to do is generate a random number between -100 and 100. I am not sure what to do exactly. Any help would be appreciated.</p>