Random Class Reference

Random class define some static method for accessing the random number generator. More...

List of all members.

Static Interface

static void setSeed (long int seed)
static Real flatReal ()
static Real flatReal (Real min, Real max)
static RealVecflatRealVec (RealVec &vec, Real min, Real max)
static RealMatflatRealMat (RealMat &mat, Real min, Real max)
static bool boolean (Real trueProb)
static bool boolean ()
static u_int flatInt (u_int x)
static int flatInt (int x, int y)
static Real gauss (Real mean, Real stdev)


Detailed Description

Details


Member Function Documentation

static void setSeed ( long int  seed  )  [static]

Set the seed of the random number generator

static Real flatReal (  )  [static]

Return a real number in [0;1)

static Real flatReal ( Real  min,
Real  max 
) [static]

Return a real number in range [min,max)

static RealVec& flatRealVec ( RealVec vec,
Real  min,
Real  max 
) [static]

Return a RealVec with all the values randomized in the range [min,max)

static RealMat& flatRealMat ( RealMat mat,
Real  min,
Real  max 
) [static]

Return a RealMat with all the values randomized in the range [min,max)

static bool boolean ( Real  trueProb  )  [static]

Return a random boolean value; True value appear with probability specified as paramater

static bool boolean (  )  [static]

Return a random boolean value; True and False values are the same probability

static u_int flatInt ( u_int  x  )  [static]

Return a random integer value in between 0 and x-1

static int flatInt ( int  x,
int  y 
) [static]

Return a random integer value in between x and y-1

static Real gauss ( Real  mean,
Real  stdev 
) [static]

Return a random real value with a gaussian distribution


The documentation for this class was generated from the following file:
BerliOS Developer Logo Valid XHTML 1.0 Transitional Valid CSS!