10 #ifndef SACADO_RANDOM_HPP
11 #define SACADO_RANDOM_HPP
23 template <
typename ScalarT>
31 Random(ScalarT a_, ScalarT b_);
34 Random(ScalarT a_, ScalarT b_,
int s);
65 #ifdef HAVE_SACADO_COMPLEX
76 class Random< std::complex<T> > {
83 Random(
const std::complex<T>&
a,
const std::complex<T>&
b);
86 Random(
const std::complex<T>& a,
const std::complex<T>& b,
int s);
109 #endif // HAVE_SACADO_COMPLEX
113 #endif // SACADO_RANDOM_HPP
ScalarT seed
Random number seed
int checkSeed(const std::string &func, int s)
ScalarT a
Lower bound of interval.
ScalarT number()
Get random number.
void setSeed(int s)
Set seed to s.
ScalarT b
Upper bound of interval.
const T func(int n, T *x)
A random number generator that generates random numbers uniformly distributed in the interval (a...