Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

Random.h

Go to the documentation of this file.
00001 
00012 #ifndef __RANDOM_H__
00013 #define __RANDOM_H__
00014 
00015 #include <stdio.h>
00016 #include <stdlib.h>
00017 #include <math.h>
00018 
00019 class Random {
00020 
00021 public:
00022   int Seed   ;
00023   int isinit ;
00024 
00025   float  Rseed       ; 
00026   double oldrand[55] ; 
00027   int    jrand       ; 
00028   double rndx2       ; 
00029   int    rndcalcflag ; 
00030 
00031   Random();
00032   ~Random();
00033 
00034 //functions from DrC.h and DrC.cpp
00035   void warmup_random(float);
00036   float rndreal(float,float);
00037   int rnd(int,int);
00038   float randomperc();
00039   double randomnormaldeviate();
00040   void randomize();
00041   double noise(double,double);
00042   void initrandomnormaldeviate();
00043   int flip(float);
00044   void advance_random();
00045 //functions from RandEvolutiva.h and RandEvolutiva.cpp
00046   double randreal2(void);
00047   double Gauss(double sigma);
00048   double N(double m, double sigma);
00049   void initrandom(int seed);
00050   int randint(int lo, int hi);
00051 
00052 }; //Random
00053 
00054 #endif

Generated on Wed Feb 11 10:38:02 2004 for Paes by doxygen 1.3.3