Click here to Skip to main content
15,891,763 members
Articles / Programming Languages / C#

Adding Random Functionality to Generic Lists using Extension Methods

Rate me:
Please Sign up or sign in to vote.
3.40/5 (3 votes)
29 Apr 2009CPOL2 min read 24.6K   170   7  
Extends IList to include a shuffle method and a 'select an element at random' method.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Play.com
United Kingdom United Kingdom
Hi, my name's Andy Wilson and I live in Cambridge, UK where I work as a Senior C# Software Developer.

Comments and Discussions