Click or drag to resize

collectionExtensionsRandomizeToListT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Returns a new list where the elements are randomly shuffled. Based on the Fisher-Yates shuffle, which has O(n) complexity.

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static List<T> RandomizeToList<T>(
	this IEnumerable<T> list
)
Request Example View Source

Parameters

list
Type: System.Collections.GenericIEnumerableT

Type Parameters

T

Return Value

Type: ListT

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. 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