IGKRandom.GetNextInt 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
GetNextInt() |
Returns an integer within the bounds of the generator. |
GetNextInt(nuint) |
Returns an integer that is less than the upper bound of the generator and also less than |
GetNextInt()
Returns an integer within the bounds of the generator.
[Foundation.Export("nextInt")]
[Foundation.Preserve(Conditional=true)]
public nint GetNextInt ();
abstract member GetNextInt : unit -> nint
Returns
System.System.IntPtr
System.nativeint
- Attributes
Applies to
GetNextInt(nuint)
Returns an integer that is less than the upper bound of the generator and also less than upperBound
.
[Foundation.Export("nextIntWithUpperBound:")]
[Foundation.Preserve(Conditional=true)]
public nuint GetNextInt (nuint upperBound);
abstract member GetNextInt : nuint -> nuint
Parameters
- upperBound
- System.System.UIntPtr System.unativeint
Returns
System.System.UIntPtr
System.unativeint
- Attributes