I have a static table with 20+ records, I would like to select N (N<20) from that table in random manner. What is the best way to do it in the code with LINQ?
Here's the best way:
var randomUsers = users.OrderBy(x => Guid.NewGuid()).Take(15);