IVariantRandomTGenerate Method
Returns a random value of T matching one of the specified variants.
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
T Generate(
Random random,
Variants variants
)
Function Generate (
random As Random,
variants As Variants
) As T
T Generate(
Random^ random,
Variants variants
)
abstract Generate :
random : Random *
variants : Variants -> 'T
- 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.
TThe value of
T that was generated.