C++ Random doubles from -1 to 1 : <p>I need to randomly generate numbers (using random()) from -1 to 1 that are doubles. For example the output would be something like:</p>

<p>1,
-0.3324,
0.7821,
0.9823,
-0.111</p>

<p>etc... this is what I was trying to do <code>walk_Length = (double)rand()%2 - 1;</code></p>
