TrueSync
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
TrueSync.TSRandom Class Reference

Generates random numbers based on a deterministic approach. More...

Public Member Functions

int Next ()
 Returns a random integer.
 
int Next (int minValue, int maxValue)
 Returns a integer between a min value [inclusive] and a max value [exclusive].
 
FP Next (float minValue, float maxValue)
 Returns a FP between a min value [inclusive] and a max value [inclusive].
 
FP NextFP ()
 Returns a FP between 0.0 [inclusive] and 1.0 [inclusive].
 
void Initialize ()
 
void Initialize (int seed)
 
void Initialize (int[] init)
 

Static Public Member Functions

static TSRandom New (int seed)
 Generates a new instance based on a given seed.
 
static int CallNext ()
 Returns a random integer.
 
static int Range (int minValue, int maxValue)
 Returns a integer between a min value [inclusive] and a max value [exclusive].
 
static FP Range (float minValue, float maxValue)
 Returns a FP between a min value [inclusive] and a max value [inclusive].
 

Static Public Attributes

static TSRandom instance
 Static instance of TSRandom with seed 1.
 

Properties

static int MaxRandomInt [get]
 
static FP value [get]
 Returns a FP between 0.0 [inclusive] and 1.0 [inclusive].
 
static TSVector insideUnitSphere [get]
 Returns a random TSVector representing a point inside a sphere with radius 1.
 

Detailed Description

Generates random numbers based on a deterministic approach.

Definition at line 8 of file TSRandom.cs.


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