Randomize Details

Description: OrderBy() is nice when you want a consistent & predictable ordering. This method is NOT THAT! Randomize() - Use this extension method when you want a different or random order every time! Useful when ordering a list of things for display to give each a fair chance of landing at the top or bottom on each hit. {customers, support techs, or even use as a randomizer for your lottery ;) }
Language: C#   Type: System.Collections.Generic.IEnumerable<T>
Author: Phil Campbell   Downloads: 7
Source code Copy to clipboard
Submitted: 2009/11/02
E-Mail: phil@devtxt.com
Rating:  1 Votes
Example:

Comments

No Comments.
Submit your comment
 
 
 
 
Captcha:
Enter the code shown: