title: Matching randomly generated number to object properties
body: <p>I have a random number generator with max, min shown below, is it possible to identify if a object property (int ID in my case) matches the random number generated?
  Or is there another way that I can 'Randomly' pick an object from a collection?</p>
  <p>Random number generator is:</p>
  <pre><code>private readonly Random _random = new Random();
  public int RandomNumber(int min, int max)
  {
     return _random.Next(min, max);
  }
  </code></pre>
  <p>And I am looking to pick from an object located in a collection such as:</p>
  <pre><code>public class Staff
  {
       public int ID;
       public Staff(int ID)
       {
           ID = this.ID
       }
       static void Main(string[] args)
       {
           List&lt;Staff&gt; StaffList = new List&lt;Staff&gt;();
           StaffList.Add(new Staff(6);
       }
  }
  </code></pre>
  <p>Any suggestions appreciated</p>