CollectionExtensions.Shuffle Method

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

Shuffle(IEnumerable, Random)

Shuffle the elements.

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

Parameters

source
System.Collections.Generic.IEnumerable<>
rnd
System.Random

Returns

System.Collections.Generic.IEnumerable<>