Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
A random number generator that generates random numbers uniformly distributed in the interval (a,b). More...
#include <Sacado_Random.hpp>
Public Member Functions | |
Random () | |
Constructor. More... | |
Random (ScalarT a_, ScalarT b_) | |
Constructor. More... | |
Random (ScalarT a_, ScalarT b_, int s) | |
Constructor with seed value s . More... | |
~Random () | |
Destructor. More... | |
void | setSeed (int s) |
Set seed to s . More... | |
ScalarT | number () |
Get random number. More... | |
Protected Member Functions | |
int | checkSeed (const std::string &func, int s) |
Protected Attributes | |
ScalarT | a |
Lower bound of interval. More... | |
ScalarT | b |
Upper bound of interval. More... | |
ScalarT | seed |
Random number seed More... | |
A random number generator that generates random numbers uniformly distributed in the interval (a,b).
Definition at line 24 of file Sacado_Random.hpp.
Sacado::Random< ScalarT >::Random | ( | ) |
Constructor.
Definition at line 17 of file Sacado_RandomImp.hpp.
Sacado::Random< ScalarT >::Random | ( | ScalarT | a_, |
ScalarT | b_ | ||
) |
Constructor.
Definition at line 29 of file Sacado_RandomImp.hpp.
Sacado::Random< ScalarT >::Random | ( | ScalarT | a_, |
ScalarT | b_, | ||
int | s | ||
) |
Constructor with seed value s
.
Definition at line 41 of file Sacado_RandomImp.hpp.
Sacado::Random< ScalarT >::~Random | ( | ) |
Destructor.
Definition at line 51 of file Sacado_RandomImp.hpp.
void Sacado::Random< ScalarT >::setSeed | ( | int | s | ) |
Set seed to s
.
Definition at line 58 of file Sacado_RandomImp.hpp.
ScalarT Sacado::Random< ScalarT >::number | ( | ) |
Get random number.
Definition at line 67 of file Sacado_RandomImp.hpp.
|
protected |
Definition at line 78 of file Sacado_RandomImp.hpp.
|
protected |
Lower bound of interval.
Definition at line 53 of file Sacado_Random.hpp.
|
protected |
Upper bound of interval.
Definition at line 56 of file Sacado_Random.hpp.
|
protected |
Random number seed
Definition at line 59 of file Sacado_Random.hpp.