stilgar submitted these extension methods

  • SelectRandom

    This method selects a random element from an Enumerable with only one pass (O(N) complexity). It contains optimizations for argumens that implement ICollection<T> by using the Count property and the ElementAt LINQ method. The ElementAt LINQ method itself contains optimizations for IList<T>
    C# System.Collections.Generic.IEnumerable<T> Stilgar

 

;