Click or drag to resize

ListExtensionsShuffleT Method

Shuffles the list using Fisher–Yates shuffle algorithm.

Namespace:  Archon.SwissArmyLib.Utils.Extensions
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void Shuffle<T>(
	this IList<T> list
)
Request Example View Source

Parameters

list
Type: System.Collections.GenericIListT
The list to shuffle.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Archon.SwissArmyLib.Utils.Extensions.ListExtensions.Shuffle``1(System.Collections.Generic.IList{``0})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also