title: Unable to generate random number Visual C#
body: <p>I'm trying to make a Rock Paper Scissors game as my first 'project' so I need the computer to generate a random number from 1-3 to represent their turn.</p>
  
  <p>I've been trying this code but I can't figure out why it's not working: </p>
  
  <pre><code>Random rnd = new Random();
  int pchand= rnd.Next(1, 4); 
  </code></pre>
  
  <p>There's a red squiggly line below rnd that says :</p>
  
  <pre><code>A field initializer cannot reference the non-static field, method, or property FileName.Form1.rnd
  </code></pre>
  
  <p>Thanks for any help!</p>