Provides extensions for generic IEnumerable collections.
More...
|
static IEnumerable< T > | Randomize< T > (this IEnumerable< T > input) |
| Takes an input collection and returns a new collection which is the input collection in random order.
|
static IList< T > | Randomize< T > (this IList< T > input) |
| Takes an input collection and returns a new collection which is the input collection in random order.
|
Provides extensions for generic IEnumerable collections.
◆ Randomize< T >() [1/2]
IEnumerable< T > PeanutButter.RandomGenerators.EnumerableExtensions.Randomize< T > |
( |
this IEnumerable< T > | input | ) |
|
|
static |
Takes an input collection and returns a new collection which is the input collection in random order.
- Parameters
-
input | Collection to randomize |
- Template Parameters
-
T | Item type of the collection |
- Returns
- A new collection with the same items as the original, but in random order
◆ Randomize< T >() [2/2]
IList< T > PeanutButter.RandomGenerators.EnumerableExtensions.Randomize< T > |
( |
this IList< T > | input | ) |
|
|
static |
Takes an input collection and returns a new collection which is the input collection in random order.
- Parameters
-
input | Collection to randomize |
- Template Parameters
-
T | Item type of the collection |
- Returns
- A new collection with the same items as the original, but in random order
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.RandomGenerators/EnumerableExtensions.cs