Scenario
I have a database consisting of a table called Problems
which in turn consists of 2 columns:
- ID
- Problem
I populated the tables with millions of records.
In my application, I want to retrive a set of N distinct records taken at random to make a problem sheet. A problem sheet consist of N problems. The randomness should be good enough to make sure I don't produce an problem sheet that is similar to the previous examination.
What is the simplest way to do so using Linq?