C# Class SuperCaissiere.Engine.Util.RandomMachine

显示文件 Open project: valryon/super-caissiere

Public Methods

Method Description
GetRandomFloat ( double fMin, double fmax ) : float

GetRandomInt ( int max ) : int

GetRandomInt ( int min, int max ) : int

GetRandomTrajectory ( double radius, double anglemin, double anglemax = 360 ) : Vector2

GetRandomVector2 ( Vector2 center, double radius ) : Vector2

GetRandomVector2 ( float xMin, float xMax, float yMin, float yMax ) : Vector2

RandomMachine ( int seed ) : System

Random init with seed

Method Details

GetRandomFloat() public method

public GetRandomFloat ( double fMin, double fmax ) : float
fMin double
fmax double
return float

GetRandomInt() public method

public GetRandomInt ( int max ) : int
max int
return int

GetRandomInt() public method

public GetRandomInt ( int min, int max ) : int
min int
max int
return int

GetRandomTrajectory() public method

public GetRandomTrajectory ( double radius, double anglemin, double anglemax = 360 ) : Vector2
radius double
anglemin double
anglemax double
return Vector2

GetRandomVector2() public method

public GetRandomVector2 ( Vector2 center, double radius ) : Vector2
center Vector2
radius double
return Vector2

GetRandomVector2() public method

public GetRandomVector2 ( float xMin, float xMax, float yMin, float yMax ) : Vector2
xMin float
xMax float
yMin float
yMax float
return Vector2

RandomMachine() public method

Random init with seed
public RandomMachine ( int seed ) : System
seed int
return System