title: srand((unsigned)(time(NULL))); (rand())/(RAND_MAX/2) - 1 C# equivalent
body: <p>What is the c# equivalent of the following c++:</p>
  
  <pre><code>srand((unsigned)(time(NULL)));
  weight=(double)(rand())/(RAND_MAX/2) - 1;
  </code></pre>