CRandom Class Reference

#include <random.h>

List of all members.

Public Member Functions

double ran (void)
 returns from zero to 1
unsigned long int iran (unsigned long int imax)
 returns integer from zero to imax-1
double gauss (void)
 weights with exp(-x^2/2)
void gauss2 (double *g1, double *g2)
double ran_exp (void)
 weights with exp(-x)
 CRandom (int seed)
void reset (int seed)
void generate_boltzmann (double mass, double T, double *p)

Private Attributes

gsl_rng * randy


Detailed Description

Definition at line 9 of file random.h.


Constructor & Destructor Documentation

CRandom::CRandom ( int  seed  ) 

Definition at line 8 of file random.cc.


Member Function Documentation

double CRandom::gauss ( void   ) 

weights with exp(-x^2/2)

Definition at line 31 of file random.cc.

void CRandom::gauss2 ( double *  g1,
double *  g2 
)

Definition at line 39 of file random.cc.

void CRandom::generate_boltzmann ( double  mass,
double  T,
double *  p 
)

Definition at line 53 of file random.cc.

long unsigned int CRandom::iran ( unsigned long int  imax  ) 

returns integer from zero to imax-1

Definition at line 27 of file random.cc.

double CRandom::ran ( void   ) 

returns from zero to 1

Definition at line 23 of file random.cc.

double CRandom::ran_exp ( void   ) 

weights with exp(-x)

Definition at line 35 of file random.cc.

void CRandom::reset ( int  seed  ) 

Definition at line 19 of file random.cc.


Member Data Documentation

gsl_rng* CRandom::randy [private]

Definition at line 24 of file random.h.


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

Generated on Fri Feb 6 13:30:18 2009 for CorAL by  doxygen 1.5.8