M_WolfCurses_EnumerableExtension_PickRandom__1 - Maxwolf/WolfCurses GitHub Wiki
Picks a random element from the list.
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static T PickRandom<T>(
this IEnumerable<T> source
)
- source
- Type: System.Collections.Generic.IEnumerable(T)
Source collection.
- T
- Type of list.
Type: T
Random element from list[!:T].
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(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).
Supported in: 0.1
EnumerableExtension Class
PickRandom Overload
WolfCurses Namespace