CollectionExtensions.Shuffle Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Shuffle(IEnumerable, Random)

Shuffle the elements.

public static IEnumerable Shuffle(this IEnumerable source, Random rnd = null)

Parameters

source
System.Collections.Generic.IEnumerable{{T}}
rnd
System.Random

Returns

System.Collections.Generic.IEnumerable{{T}}