SyntaxFix
Write A Post
Hire A Developer
Questions
Using linq:
YourList.OrderBy(x => rnd.Next()).Take(5)