Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: T Shuffle<T>(this T, Random)

Declaration

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

Summary

Brings the elements of the given list into a random order.

Generic type parameters

T
  • Must derive from: System.Collections.IList.
Type of the list.

Parameters

this Tlist List to shuffle.
Randomrnd Random number generator, or null to use Rnd.

Returns

The list operated on.