32#ifndef SACADO_RANDOM_HPP
33#define SACADO_RANDOM_HPP
45 template <
typename ScalarT>
53 Random(ScalarT a_, ScalarT b_);
56 Random(ScalarT a_, ScalarT b_,
int s);
87#ifdef HAVE_SACADO_COMPLEX
98 class Random<
std::complex<T> > {
105 Random(
const std::complex<T>&
a,
const std::complex<T>&
b);
108 Random(
const std::complex<T>&
a,
const std::complex<T>&
b,
int s);
const T func(int n, T *x)
A random number generator that generates random numbers uniformly distributed in the interval (a,...
void setSeed(int s)
Set seed to s.
ScalarT a
Lower bound of interval.
ScalarT seed
Random number seed
int checkSeed(const std::string &func, int s)
ScalarT b
Upper bound of interval.
ScalarT number()
Get random number.