Answers for "Linq - Random Elements"

C#
2

Linq - Random Elements

var rnd = new Random();
var SelectedPost = q.OrderBy(x => rnd.Next()).Take(1);
Posted by: Guest on June-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language