Linq - Random Elements

C#
var rnd = new Random();
var SelectedPost = q.OrderBy(x => rnd.Next()).Take(1);
Source

Also in C#: