C# 클래스 Dwarrowdelf.MWCRandom

파일 보기 프로젝트 열기: tomba/dwarrowdelf 1 사용 예제들

공개 메소드들

메소드 설명
MWCRandom ( IntVector2 p, int seed ) : System
MWCRandom ( IntVector3 p, int seed ) : System
MWCRandom ( uint seed1, uint seed2 ) : System
Next ( ) : int

Get random Int32 [0, Int32.MaxValue)

Next ( int exclusiveMax ) : int

Get random Int32 [0, exclusiveMax)

NextDouble ( ) : double

Get random double [0.0, 1.0)

NextUint ( ) : uint

Get random UInt32 [0, UInt32.MaxValue]

메소드 상세

MWCRandom() 공개 메소드

public MWCRandom ( IntVector2 p, int seed ) : System
p IntVector2
seed int
리턴 System

MWCRandom() 공개 메소드

public MWCRandom ( IntVector3 p, int seed ) : System
p IntVector3
seed int
리턴 System

MWCRandom() 공개 메소드

public MWCRandom ( uint seed1, uint seed2 ) : System
seed1 uint
seed2 uint
리턴 System

Next() 공개 메소드

Get random Int32 [0, Int32.MaxValue)
public Next ( ) : int
리턴 int

Next() 공개 메소드

Get random Int32 [0, exclusiveMax)
public Next ( int exclusiveMax ) : int
exclusiveMax int
리턴 int

NextDouble() 공개 메소드

Get random double [0.0, 1.0)
public NextDouble ( ) : double
리턴 double

NextUint() 공개 메소드

Get random UInt32 [0, UInt32.MaxValue]
public NextUint ( ) : uint
리턴 uint