Partager via


GKRandomDistribution.GetNextInt Méthode

Définition

Surcharges

GetNextInt()

Retourne un entier dans les limites de la distribution.

GetNextInt(nuint)

Retourne un entier dans les limites de la distribution, mais pas supérieur à upperBound.

GetNextInt()

Retourne un entier dans les limites de la 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

Retours

System.System.IntPtr System.nativeint

Implémente

Attributs

S’applique à

GetNextInt(nuint)

Retourne un entier dans les limites de la distribution, mais pas supérieur à 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

Paramètres

upperBound
System.System.UIntPtr System.unativeint

Retours

System.System.UIntPtr System.unativeint

Implémente

Attributs

S’applique à