Partager via


IGKRandom Interface

Définition

Interface pour les générateurs de nombres pseudo-aléatoires GameplayKit.

[Foundation.Protocol(Name="GKRandom", WrapperType=typeof(GameplayKit.GKRandomWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public interface IGKRandom : IDisposable, ObjCRuntime.INativeObject
type IGKRandom = interface
    interface INativeObject
    interface IDisposable
Dérivé
Attributs
Implémente

Propriétés

Handle

Handle (pointeur) vers la représentation d’objet non managée.

(Hérité de INativeObject)

Méthodes

GetNextBool()

Récupère une true valeur ou false .

GetNextInt()

Retourne un entier dans les limites du générateur.

GetNextInt(nuint)

Retourne un entier inférieur à la limite supérieure du générateur et également inférieur à upperBound.

GetNextUniform()

Retourne une valeur à virgule flottante aléatoire.

S’applique à