C# Class Dwarrowdelf.MWCRandom

Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public MWCRandom ( IntVector2 p, int seed ) : System
p IntVector2
seed int
Résultat System

MWCRandom() public méthode

public MWCRandom ( IntVector3 p, int seed ) : System
p IntVector3
seed int
Résultat System

MWCRandom() public méthode

public MWCRandom ( uint seed1, uint seed2 ) : System
seed1 uint
seed2 uint
Résultat System

Next() public méthode

Get random Int32 [0, Int32.MaxValue)
public Next ( ) : int
Résultat int

Next() public méthode

Get random Int32 [0, exclusiveMax)
public Next ( int exclusiveMax ) : int
exclusiveMax int
Résultat int

NextDouble() public méthode

Get random double [0.0, 1.0)
public NextDouble ( ) : double
Résultat double

NextUint() public méthode

Get random UInt32 [0, UInt32.MaxValue]
public NextUint ( ) : uint
Résultat uint