RandomExtended..::..Choose<(Of <(<'T>)>)> Method (IReadOnlyList<(Of <(<'T>)>)>)

Choose one item from the list, leaving the original list unaltered.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public T Choose<T>(
	IReadOnlyList<T> list
)
Public Function Choose(Of T) ( _
	list As IReadOnlyList(Of T) _
) As T

Type Parameters

T

Parameters

list
Type: IReadOnlyList<(Of <(<'T>)>)>
The list.

Return Value

Exceptions


ExceptionCondition
[ArgumentNullException]list;list is null.