C# Class Dwarrowdelf.MWCRandom

Show file Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
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]

Method Details

MWCRandom() public method

public MWCRandom ( IntVector2 p, int seed ) : System
p IntVector2
seed int
return System

MWCRandom() public method

public MWCRandom ( IntVector3 p, int seed ) : System
p IntVector3
seed int
return System

MWCRandom() public method

public MWCRandom ( uint seed1, uint seed2 ) : System
seed1 uint
seed2 uint
return System

Next() public method

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

Next() public method

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

NextDouble() public method

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

NextUint() public method

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