#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. |