ChooseOne(T) Method (T[])

Project Mercury API

[This is preliminary documentation and is subject to change.]

Chooses a random item from the specified parameters and returns it.

Namespace:  ProjectMercury
Assembly:  ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0

Syntax

C#
public static T ChooseOne<T>(
	params T[] values
)
Visual Basic (Declaration)
Public Shared Function ChooseOne(Of T) ( _
	ParamArray values As T() _
) As T
Visual C++
public:
generic<typename T>
static T ChooseOne(
	... array<T>^ values
)

Parameters

values
Type: array< T >[]()[]

[Missing <param name="values"/> documentation for "M:ProjectMercury.RandomHelper.ChooseOne``1(``0[])"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:ProjectMercury.RandomHelper.ChooseOne``1(``0[])"]

Return Value

[Missing <returns> documentation for "M:ProjectMercury.RandomHelper.ChooseOne``1(``0[])"]

See Also