#include <Random.hh>
Inheritance diagram for RazorBack::Randombase_:
Public Methods | |
Randombase_ (int S1=0, int S2=0) | |
Init with the seeds S1, S2. More... | |
virtual | ~Randombase_ () |
destructor. | |
void | reset (int S1=0, int S2=0) |
reset(S1, S2): resets the generator with S1, S2. More... | |
virtual double | operator() (void) const=0 |
operator(): this call should return a random double in the derived classes. | |
Protected Methods | |
int | int_rand (void) const |
double | dbl_rand (void) const |
Private Attributes | |
int | Seed1 |
int | Seed2 |
Definition at line 22 of file Random.hh.
|
Init with the seeds S1, S2. If S1==0 (default), then getpid() is used as seed. If S2==0 (default), then time(NULL) is used as seed. |
|
destructor.
|
|
reset(S1, S2): resets the generator with S1, S2. If S1==0 (default), then getpid() is used as seed. If S2==0 (default), then time(NULL) is used as seed. Referenced by Randombase_(). |
|
operator(): this call should return a random double in the derived classes.
Reimplemented in RazorBack::Randomuni_, and RazorBack::Randomnorm_. |
|
|
|
Referenced by RazorBack::Randomuni_::operator()(), and RazorBack::Randomuni_::rnd_lim(). |
|
|
|
|