Düzenle

Aracılığıyla paylaş


IGKRandom Interface

Definition

Interface for GameplayKit pseudo-random number generators.

[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
Derived
Attributes
Implements

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

GetNextBool()

Retrieves a true or false value.

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 upperBound.

GetNextUniform()

Returns a random floating-point value.

Applies to