Random.NextInteger Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| NextInteger<T>() | |
| NextInteger<T>(T) | |
| NextInteger<T>(T, T) |
NextInteger<T>()
- Source:
- Random.cs
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T>, System::Numerics::IMinMaxValue<T> T NextInteger();
public T NextInteger<T>() where T : System.Numerics.IBinaryInteger<T>, System.Numerics.IMinMaxValue<T>;
member this.NextInteger : unit -> 'T (requires 'T :> System.Numerics.IBinaryInteger<'T> and 'T :> System.Numerics.IMinMaxValue<'T>)
Public Function NextInteger(Of T As {IBinaryInteger(Of T), IMinMaxValue(Of T)}) () As T
Type Parameters
- T
Returns
Applies to
NextInteger<T>(T)
- Source:
- Random.cs
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> T NextInteger(T maxValue);
public T NextInteger<T>(T maxValue) where T : System.Numerics.IBinaryInteger<T>;
member this.NextInteger : 'T -> 'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Function NextInteger(Of T As IBinaryInteger(Of T)) (maxValue As T) As T
Type Parameters
- T
Parameters
- maxValue
- T
Returns
Applies to
NextInteger<T>(T, T)
- Source:
- Random.cs
public:
generic <typename T>
where T : System::Numerics::IBinaryInteger<T> T NextInteger(T minValue, T maxValue);
public T NextInteger<T>(T minValue, T maxValue) where T : System.Numerics.IBinaryInteger<T>;
member this.NextInteger : 'T * 'T -> 'T (requires 'T :> System.Numerics.IBinaryInteger<'T>)
Public Function NextInteger(Of T As IBinaryInteger(Of T)) (minValue As T, maxValue As T) As T
Type Parameters
- T
Parameters
- minValue
- T
- maxValue
- T