RandomListExtensions.

Shuffle<T>(Random, IList<T>) Method

Summary

Shuffles the collection in place.

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<T> Collection to shuffle.

Return Value

Type Description
void