Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

random.hh File Reference

#include <cmath>

Include dependency graph for random.hh:

Go to the source code of this file.

Namespaces

namespace  spot

Functions

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


Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jan 31 12:54:52 2005 for spot by doxygen 1.4.0