GKRandomDistribution.GetNextInt Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à |
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