title: Why does it appear that my random number generator isn't random in C#?
body: <p>I'm working in Microsoft Visual C# 2008 Express.</p>
  
  <p>I found this snippet of code:</p>
  
  <pre><code>    public static int RandomNumber(int min, int max)
      {
          Random random = new Random();
  
          return random.Next(min, max);
      }
  </code></pre>
  
  <p>the problem is that I've run it more than 100 times, and it's ALWAYS giving me the same answer when my min = 0 and max = 1. I get 0 every single time.  (I created a test function to run it - really - I'm getting 0 each time). I'm having a hard time believing that's a coincidence...  is there something else I can do to examine or test this?  (I did re-run the test with min = 0 and max = 10 and the first 50ish times, the result was always "5", the 2nd 50ish times, the result was always "9".</p>
  
  <p>??  I need something a little more consistently random...</p>
  
  <p>-Adeena</p>