title: Why does Random.Next() always return the same number
body: <p>Consider this method:</p>
  
  <pre><code>private static int GenerateRandomNumber(int seed, int max)
  {
     return new Random(seed).Next(max);
  }
  </code></pre>
  
  <p>On my machine, executing this loop yields the same number through 1500 iterations:</p>
  
  <pre><code>  for (int i = 0; i &lt; 1501; i++)
              {
                  int random = GenerateRandomNumber(100000000, 999999999);
                  Console.WriteLine(random.ToString());
                  Console.ReadKey();
              }
  </code></pre>
  
  <p>I get 145156561, for every single iteration.</p>
  
  <p>I don't have a pressing issue, I was just curious about this behavior because .Next(max) says "Returns a Non Negative <strong>random</strong> number less than the specified maximum. Perhaps I am not understanding something basic.</p>