SoftCircuits.RandomEnumerableExtensions NuGet Package

The RandomEnumerableExtensions class library implements Random() and Shuffle() extension methods so they are available as methods on any collection that implements IEnumerable<T>.

The Random() method returns one item randomly chosen from the collection.

The Shuffle() method reorders the collection. If the collection implements IList<T>, the items are shuffled in place.

Otherwise, the collection is copied in random order.

Now targets .NET Standard 2.0 or .NET 5.0, and supports nullable reference types.




Got any SoftCircuits.RandomEnumerableExtensions Question?





Info

Version: 2.0.0
Author(s): Jonathan Wood
Last Update: Tuesday, February 23, 2021
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/SoftCircuits/RandomEnumerableExtensions
NuGet Url: https://www.nuget.org/packages/SoftCircuits.RandomEnumerableExtensions


Install
Install-Package SoftCircuits.RandomEnumerableExtensions
dotnet add package SoftCircuits.RandomEnumerableExtensions
paket add SoftCircuits.RandomEnumerableExtensions
SoftCircuits.RandomEnumerableExtensions Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

1.5

avg-downloads-per-day

0

days-since-last-release

1156