linq take random from list code example
Example: Linq - Random Elements
var rnd = new Random();
var SelectedPost = q.OrderBy(x => rnd.Next()).Take(1);
var rnd = new Random();
var SelectedPost = q.OrderBy(x => rnd.Next()).Take(1);