What is the best (and fastest) way to retrieve a random row using Linq to SQL when I have a condition, e.g. some field must be true?
if you want to get e.g. var count = 16 random rows from table, you can write
var count = 16
var rows = Table.OrderBy(t => Guid.NewGuid()) .Take(count);
here I used E.F, and the Table is a Dbset