title: How to get a Random Object using Linq
body: <p>I am trying to get a random object within linq. Here is how I did. </p>
  
  <pre><code>//get all the answers
  var Answers = q.Skip(1).Take(int.MaxValue);
  //get the random number by the number of answers
  int intRandomAnswer = r.Next(1, Answers.Count());
  int count = 0;
  
  //locate the answer
  foreach(var Answer in Answers)
  {
      if (count == intRandomAnswer)
      {
          SelectedPost = Answer;
          break;
      }
      count++;
  }
  </code></pre>
  
  <p>Is this the best way to do this?</p>