Share via


IGKRandom 인터페이스

정의

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
파생
특성
구현

속성

Handle

관리되지 않는 개체 표현에 대한 핸들(포인터)입니다.

(다음에서 상속됨 INativeObject)

메서드

GetNextBool()

또는 false 값을 검색합니다true.

GetNextInt()

생성기 범위 내의 정수 를 반환합니다.

GetNextInt(nuint)

생성기의 상한보다 작고 보다 작은 upperBound정수도 반환합니다.

GetNextUniform()

임의의 부동 소수점 값을 반환합니다.

적용 대상