Go to the documentation of this file.
20 #ifndef SPOT_MISC_RANDOM_HH
21 # define SPOT_MISC_RANDOM_HH
34 void srand(
unsigned int seed);
40 int rrand(
int min,
int max);
80 template<
double (*gen)()>
85 :
n_(n),
m_(n * p),
s_(sqrt(n * p * (1 - p)))
96 double x = gen() *
s_ +
m_;
99 res =
static_cast<int> (x);
119 #endif // SPOT_MISC_RANDOM_HH
Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Mon Jul 29 2013 00:27:24 for spot by
1.8.4