Table of Contents

Method Shuffle

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

Shuffle<T>(IList<T>)

Shuffles a list.

public static void Shuffle<T>(this IList<T> list)

Parameters

list IList<T>

The list to shuffle.

Type Parameters

T

The type of items in the list.

Shuffle<T>(IList<T>, IRandom)

Shuffles a list.

public static void Shuffle<T>(this IList<T> list, IRandom random)

Parameters

list IList<T>

The list to shuffle.

random IRandom

The random generator to use.

Type Parameters

T

The type of items in the list.