title: random string generation - two generated one after another give same results
body: <p>I have a simple piece of code:</p>
  
  <pre><code>public string GenerateRandomString()
          {
              string randomString = string.Empty;
              Random r = new Random();
              for (int i = 0; i &lt; length; i++)
                  randomString += chars[r.Next(chars.Length)];
  
              return randomString;
          }
  </code></pre>
  
  <p>If i call this function to generate two strings, one after another, they are identical... but if i debug through the two lines where the strings are generated - the results are different.
  does anyone know why is it happening?</p>