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

RazorBack::Randomuni_ Class Reference

Randomuni_: generates uniform random numbers. More...

#include <Random.hh>

Inheritance diagram for RazorBack::Randomuni_:

Inheritance graph
[legend]
Collaboration diagram for RazorBack::Randomuni_:

Collaboration graph
[legend]
List of all members.

Public Methods

 Randomuni_ (int S1=0, int S2=0)
 Init with the seeds S1, S2. More...

double operator() (void) const
 operator(): returns a random double value between 0.0 and 1.0.

double rnd_lim (double L, double U) const
 rnd_lim(L, U): returns a random double between L and U. No checks.


Detailed Description

Randomuni_: generates uniform random numbers.

Definition at line 67 of file Random.hh.


Constructor & Destructor Documentation

RazorBack::Randomuni_::Randomuni_ ( int S1 = 0,
int S2 = 0 ) [inline, explicit]
 

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.

Definition at line 77 of file Random.hh.


Member Function Documentation

double RazorBack::Randomuni_::operator() ( void ) const [inline, virtual]
 

operator(): returns a random double value between 0.0 and 1.0.

Reimplemented from RazorBack::Randombase_.

Definition at line 81 of file Random.hh.

double RazorBack::Randomuni_::rnd_lim ( double L,
double U ) const [inline]
 

rnd_lim(L, U): returns a random double between L and U. No checks.

Definition at line 84 of file Random.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:18 2002 for The Razorback C++ Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001