spot  1.1.3
Classes | Namespaces | Functions
random.hh File Reference
#include <cmath>
Include dependency graph for random.hh:

Go to the source code of this file.

Classes

class  spot::barand< gen >
 Compute pseudo-random integer value between 0 and n included, following a binomial distribution for probability p. More...
 

Namespaces

 spot
 

Functions

void spot::srand (unsigned int seed)
 Reset the seed of the pseudo-random number generator. More...
 
int spot::rrand (int min, int max)
 Compute a pseudo-random integer value between min and max included. More...
 
int spot::mrand (int max)
 Compute a pseudo-random integer value between 0 and max-1 included. More...
 
double spot::drand ()
 Compute a pseudo-random double value between 0.0 and 1.0 (1.0 excluded). More...
 
double spot::nrand ()
 Compute a pseudo-random double value following a standard normal distribution. (Odeh & Evans) More...
 
double spot::bmrand ()
 Compute a pseudo-random double value following a standard normal distribution. (Box-Muller) More...
 
int spot::prand (double p)
 Return a pseudo-random positive integer value following a Poisson distribution with parameter p. More...
 

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Tue Jul 9 2013 14:04:33 for spot by doxygen 1.8.4