Select N random elements from a List in C#

Using linq:

YourList.OrderBy(x => rnd.Next()).Take(5)

Leave a Comment