Click here to Skip to main content
15,923,168 members
Articles / Programming Languages / C#

Random Sample Extension Method for .NET 3.0 LINQ Queries

Rate me:
Please Sign up or sign in to vote.
2.93/5 (7 votes)
6 Nov 2006CPOL4 min read 45.3K   161   6  
Extension Method that allows a random sample to be returned from any IEnumerable collection

Views

Daily Counts

Downloads

Weekly Counts

License

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


Written By
Web Developer
United States United States
Troy Magennis is a C# MVP, born and raised in Sydney, Australia but now living in Seattle, WA in the United States. Troy spends whatever time he doesn't spend writing or talking about writing C# .NET code in the outdoors, hiking or skiing. Current hobby projects include writing about the upcoming C# features, writing a suit of unit tests for the Standard Query Operators for LINQ, and a set of additional extension methods all available from his Blog: http://blog.aspiring-technology.com

Comments and Discussions