Standard Posted by Rochelle Cassar Posted on March 20, 2014 Posted under C# programming / Visual Studio, Quick Tips Comments Leave a comment Randomize an IList in C# Random rnd = new Random(); IList<table> rows = mySession.Query<table>().ToList(); return (IEnumerable)rows.OrderBy((item) => rnd.Next()); Rate this:Share this:TwitterFacebookLike this:Like Loading... Related random IEnumerable resultrandomise IList Post navigation ← Solution: Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive. Error: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. → Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Google account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) Cancel Connecting to %s Notify me of new comments via email. Notify me of new posts via email.