| GenExtensionsPickGeneratorsT Method (Int32, IEnumerableGen`1T) |
A generator that picks a given number of elements from a list of generators, randomly.
Namespace: FsCheckUtilsAssembly: FsCheckUtils (in FsCheckUtils.dll) Version: 1.0.1.0 (1.0.1.0)
Syntaxpublic static Gen<List<T>> PickGenerators<T>(
int n,
IEnumerable<Gen<T>> gs
)
Public Shared Function PickGenerators(Of T) (
n As Integer,
gs As IEnumerable(Of Gen(Of T))
) As Gen(Of List(Of T))
public:
generic<typename T>
static Gen<List<T>^>^ PickGenerators(
int n,
IEnumerable<Gen<T>^>^ gs
)
static member PickGenerators :
n : int *
gs : IEnumerable<Gen<'T>> -> Gen<List<'T>>
Parameters
- n
- Type: SystemInt32
The number of items to pick from the list. - gs
- Type: System.Collections.GenericIEnumerableGenT
The list of generators to pick from.
Type Parameters
- T
- The type generated by the generators in the list of generators.
Return Value
Type:
GenListTA generator that generates a given number of elements from a list of generators, randomly.
See Also