C# 클래스 Sharpex2D.GameRandom

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

공개 메소드들

메소드 설명
GameRandom ( ) : System

Initializes a new GameRandom.

Next ( ) : int

Returns Int32 between Int32 min - and max value.

Next ( int max ) : int

Returns Int32 between 0 and max.

Next ( int min, int max ) : int

Returns Int32 between min and max.

NextBoolean ( ) : bool

Returns true or false.

NextBoolean ( double probability ) : bool

Returns true or false based on the probability.

NextDouble ( ) : double

Returns a double between 0 and 1.

NextFloat ( ) : float

Returns a float between 0 and 1.

메소드 상세

GameRandom() 공개 메소드

Initializes a new GameRandom.
public GameRandom ( ) : System
리턴 System

Next() 공개 메소드

Returns Int32 between Int32 min - and max value.
public Next ( ) : int
리턴 int

Next() 공개 메소드

Returns Int32 between 0 and max.
public Next ( int max ) : int
max int The Maximum.
리턴 int

Next() 공개 메소드

Returns Int32 between min and max.
public Next ( int min, int max ) : int
min int The Minimum.
max int The Maximum.
리턴 int

NextBoolean() 공개 메소드

Returns true or false.
public NextBoolean ( ) : bool
리턴 bool

NextBoolean() 공개 메소드

Returns true or false based on the probability.
public NextBoolean ( double probability ) : bool
probability double The Probability.
리턴 bool

NextDouble() 공개 메소드

Returns a double between 0 and 1.
public NextDouble ( ) : double
리턴 double

NextFloat() 공개 메소드

Returns a float between 0 and 1.
public NextFloat ( ) : float
리턴 float