generate random numbers
More...
#include <rand.h>
List of all members.
Static Public Member Functions |
static double | gauss_rand (double mean, double sigma) |
static void | seed_rand () |
static void | seed_rand (unsigned int seed) |
static double | uniform_rand (double lowerBndr, double upperBndr) |
Detailed Description
generate random numbers
Definition at line 31 of file rand.h.
Member Function Documentation
Gaussian random with a mean and standard deviation. Uses the Polar method of Marsaglia.
Definition at line 38 of file rand.h.
default seed function using the current time in seconds
Definition at line 60 of file rand.h.
seed the random number generator
Definition at line 66 of file rand.h.
sample a number from a uniform distribution
Definition at line 52 of file rand.h.
The documentation for this class was generated from the following file: