Space Engineers
Public Member Functions | Public Attributes | List of all members
VRage.Noise.MyRNG Struct Reference

! TODO AR : measure times & values againts System.Random More...

Public Member Functions

 MyRNG (int seed=1)
 
uint NextInt ()
 
float NextFloat ()
 
int NextIntRange (float min, float max)
 
float NextFloatRange (float min, float max)
 

Public Attributes

const uint MAX_MASK = 0x7FFFFFFF
 
const float MAX_MASK_FLOAT = MAX_MASK
 
uint Seed
 

Detailed Description

! TODO AR : measure times & values againts System.Random

Definition at line 6 of file MyRNG.cs.

Constructor & Destructor Documentation

VRage.Noise.MyRNG.MyRNG ( int  seed = 1)
inline

Definition at line 13 of file MyRNG.cs.

Member Function Documentation

float VRage.Noise.MyRNG.NextFloat ( )
inline

Definition at line 25 of file MyRNG.cs.

float VRage.Noise.MyRNG.NextFloatRange ( float  min,
float  max 
)
inline

Definition at line 39 of file MyRNG.cs.

uint VRage.Noise.MyRNG.NextInt ( )
inline

Definition at line 19 of file MyRNG.cs.

int VRage.Noise.MyRNG.NextIntRange ( float  min,
float  max 
)
inline

Definition at line 31 of file MyRNG.cs.

Member Data Documentation

const uint VRage.Noise.MyRNG.MAX_MASK = 0x7FFFFFFF

Definition at line 8 of file MyRNG.cs.

const float VRage.Noise.MyRNG.MAX_MASK_FLOAT = MAX_MASK

Definition at line 9 of file MyRNG.cs.

uint VRage.Noise.MyRNG.Seed

Definition at line 11 of file MyRNG.cs.


The documentation for this struct was generated from the following file: