RandomExtensionsNextVariantT(Random, Variants) Method
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static T NextVariant<T>(
this Random random,
Variants variants
)
where T : struct, new(), IProvider<IVariantRandom<T>>
<ExtensionAttribute>
Public Shared Function NextVariant(Of T As {Structure, New, IProvider(Of IVariantRandom(Of T))}) (
random As Random,
variants As Variants
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : value class, gcnew(), IProvider<IVariantRandom<T>^>
static T NextVariant(
Random^ random,
Variants variants
)
[<ExtensionAttribute>]
static member NextVariant :
random : Random *
variants : Variants -> 'T when 'T : struct, new() and IProvider<IVariantRandom<'T>>
- random Random
-
- variants Variants
-
- T
TIn Visual Basic and C#, you can call this method as an instance method on any object of type
Random. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).