RandomExtensionsChooseT Method
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static T Choose<T>(
this Random random,
T item,
params T[] items
)
<ExtensionAttribute>
Public Shared Function Choose(Of T) (
random As Random,
item As T,
ParamArray items As T()
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T Choose(
Random^ random,
T item,
... array<T>^ items
)
[<ExtensionAttribute>]
static member Choose :
random : Random *
item : 'T *
items : 'T[] -> 'T
- random Random
-
- item T
-
- items T
-
- T
TIn Visual Basic and C#, you can call this method as an instance method on any object of type
Random. 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).