java Math.random() from -N to N
<p>I need to randomly pick a number (this is in java, using Math.random()) between -N and N. Specifically, in this current case I need to pick a random number between -1 and 1. All the results I've found has explained how to find a random number between some positive numbers. </p>

<p>Right now I'm using this statement, which only covers half of what I need.</p>

<pre><code>double i = Math.random();
</code></pre>
