IVariantRandomTGenerate Method

Returns a random value of T matching one of the specified variants.

Definition

Namespace: Jodosoft.Primitives
Assembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
T Generate(
	Random random,
	Variants variants
)

Parameters

random  Random
The instance of Random to use for supporting pseudo-random number generation.
variants  Variants
A bitwise combination of the enumeration values that specify which variants of T may be generated.

Return Value

T
The value of T that was generated.

Exceptions

ArgumentOutOfRangeExceptionvariants is equal to None.

See Also