Sacado::Random Class Reference

A random number generator that generates random numbers uniformly distributed in the interval (a,b). More...

#include <Sacado_Random.hpp>

List of all members.

Public Member Functions

 Random (double a_, double b_)
 Constructor.
 Random (double a_, double b_, int s)
 Constructor with seed value s.
 ~Random ()
 Destructor.
void setSeed (int s)
 Set seed to s.
double number ()
 Get random number.

Protected Member Functions

int checkSeed (const std::string &func, int s)

Protected Attributes

double a
 Lower bound of interval.
double b
 Upper bound of interval.
double seed
 Random number seed


Detailed Description

A random number generator that generates random numbers uniformly distributed in the interval (a,b).

Definition at line 43 of file Sacado_Random.hpp.


Constructor & Destructor Documentation

Sacado::Random::Random ( double  a_,
double  b_ 
)

Constructor.

Definition at line 38 of file Sacado_Random.cpp.

Sacado::Random::Random ( double  a_,
double  b_,
int  s 
)

Constructor with seed value s.

Definition at line 48 of file Sacado_Random.cpp.

Sacado::Random::~Random (  ) 

Destructor.

Definition at line 56 of file Sacado_Random.cpp.


Member Function Documentation

void Sacado::Random::setSeed ( int  s  ) 

Set seed to s.

Definition at line 61 of file Sacado_Random.cpp.

double Sacado::Random::number (  ) 

Get random number.

Definition at line 68 of file Sacado_Random.cpp.

int Sacado::Random::checkSeed ( const std::string &  func,
int  s 
) [protected]

Definition at line 77 of file Sacado_Random.cpp.


Member Data Documentation

double Sacado::Random::a [protected]

Lower bound of interval.

Definition at line 69 of file Sacado_Random.hpp.

double Sacado::Random::b [protected]

Upper bound of interval.

Definition at line 72 of file Sacado_Random.hpp.

double Sacado::Random::seed [protected]

Random number seed

Definition at line 75 of file Sacado_Random.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 12 21:59:11 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7