i have a query which will result 10 or 20 or any number number of rows. Below is the query.
var q = (from c in session.DB.Question where c.Level='1' && c.Group='1' select c);
This query can give me any number of rows.
But i have to show just 1 row from the result. I can select top 1/first but i would like select randomly.
i saw a topic about this: How to request a random row in SQL? but i want it in LinQ
Please help me how to get random row from the result.