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 |
|
|
NextInteger |
|
|
NextInteger |
NextInteger()
- Source:
- Random.cs
public:
generic
where T : System::Numerics::IBinaryInteger, System::Numerics::IMinMaxValue T NextInteger();
public T NextInteger() where T : System.Numerics.IBinaryInteger, System.Numerics.IMinMaxValue;
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)
- Source:
- Random.cs
public:
generic
where T : System::Numerics::IBinaryInteger T NextInteger(T maxValue);
public T NextInteger(T maxValue) where T : System.Numerics.IBinaryInteger;
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)
- Source:
- Random.cs
public:
generic
where T : System::Numerics::IBinaryInteger T NextInteger(T minValue, T maxValue);
public T NextInteger(T minValue, T maxValue) where T : System.Numerics.IBinaryInteger;
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