Linq - Random Elements
var rnd = new Random();
var SelectedPost = q.OrderBy(x => rnd.Next()).Take(1);
Linq - Random Elements
var rnd = new Random();
var SelectedPost = q.OrderBy(x => rnd.Next()).Take(1);
linq pick random element
var rand = new Random();
var user = users[rand.Next(users.Count)];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us