RandomExtensionsNextNumericTNumeric(Random, TNumeric, TNumeric, Generation) Method
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
public static TNumeric NextNumeric<TNumeric>(
this Random random,
TNumeric minValue,
TNumeric maxValue,
Generation mode
)
where TNumeric : struct, new(), INumeric<TNumeric>
<ExtensionAttribute>
Public Shared Function NextNumeric(Of TNumeric As {Structure, New, INumeric(Of TNumeric)}) (
random As Random,
minValue As TNumeric,
maxValue As TNumeric,
mode As Generation
) As TNumeric
public:
[ExtensionAttribute]
generic<typename TNumeric>
where TNumeric : value class, gcnew(), INumeric<TNumeric>
static TNumeric NextNumeric(
Random^ random,
TNumeric minValue,
TNumeric maxValue,
Generation mode
)
[<ExtensionAttribute>]
static member NextNumeric :
random : Random *
minValue : 'TNumeric *
maxValue : 'TNumeric *
mode : Generation -> 'TNumeric when 'TNumeric : struct, new() and INumeric<'TNumeric>
- random Random
-
- minValue TNumeric
-
- maxValue TNumeric
-
- mode Generation
-
- TNumeric
TNumericIn 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).