Summary
Shuffles the collection in place.
- Namespace
- StrideToolkit
.Collections - Containing Type
- RandomListExtensions
Syntax
public static void Shuffle<T>(this Random random, IList<T> collection)
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
random | Random | An instance of Random . |
collection | IList |
Collection to shuffle. |
Return Value
Type | Description |
---|---|
void |