| GenExtensionsPickValuesT Method (Int32, T) |
A generator that picks a given number of elements from a list, randomly.
Namespace: FsCheckUtilsAssembly: FsCheckUtils (in FsCheckUtils.dll) Version: 1.0.1.0 (1.0.1.0)
Syntaxpublic static Gen<List<T>> PickValues<T>(
int n,
params T[] l
)
Public Shared Function PickValues(Of T) (
n As Integer,
ParamArray l As T()
) As Gen(Of List(Of T))
public:
generic<typename T>
static Gen<List<T>^>^ PickValues(
int n,
... array<T>^ l
)
static member PickValues :
n : int *
l : 'T[] -> Gen<List<'T>>
Parameters
- n
- Type: SystemInt32
The number of items to pick from the list. - l
- Type: T
The list of elements to pick from.
Type Parameters
- T
- The type of the elements in the list.
Return Value
Type:
GenListTA generator that generates a given number of elements from a list, randomly.
See Also