GKRandomDistribution.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 in the bounds of the distribution. |
GetNextInt(nuint) |
Returns an integer in the bounds of the distribution, but not greater than |
GetNextInt()
Returns an integer in the bounds of the distribution.
[Foundation.Export("nextInt")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual nint GetNextInt ();
abstract member GetNextInt : unit -> nint
override this.GetNextInt : unit -> nint
Returns
System.System.IntPtr
System.nativeint
Implements
- Attributes
Applies to
GetNextInt(nuint)
Returns an integer in the bounds of the distribution, but not greater than upperBound
.
[Foundation.Export("nextIntWithUpperBound:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual nuint GetNextInt (nuint upperBound);
abstract member GetNextInt : nuint -> nuint
override this.GetNextInt : nuint -> nuint
Parameters
- upperBound
- System.System.UIntPtr System.unativeint
Returns
System.System.UIntPtr
System.unativeint
Implements
- Attributes