Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic Grids 1 Documentation [Deprecated]
Gamelogic.Extensions.Algorithms
CollectionExtensions Class
CollectionExtensions Methods
Shuffle Method
Shuffle(T) Method (IList(T))
Shuffle(T) Method (IList(T), IRandom)
CollectionExtensions
Shuffle
T
Method (IList
T
, IRandom)
Shuffles a list.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
Copy
public
static
void
Shuffle
<T>(
this
IList
<T>
list
,
IRandom
random
)
Parameters
list
Type:
System.Collections.Generic
IList
T
The list to shuffle.
random
Type:
Gamelogic.Extensions
IRandom
The random generator to use.
Type Parameters
T
The type of items in the list.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IList
T
. 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
Reference
CollectionExtensions Class
Shuffle Overload
Gamelogic.Extensions.Algorithms Namespace