Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Random.h File Reference


Detailed Description

The mathematic classes for random work.

#include <cmath>
#include <cstdlib>

Go to the source code of this file.

Namespaces

namespace  An

Functions

double uniformRand (void)
 Return a number in [0;1[ in a uniform distribution.
unsigned intRand (unsigned max)
 Return a number between [0;max[ in integer in a uniform distribution.
bool boolRand (double prob=0.5)
 Return true with a probability prob. If no argument is given, prob = 0.5.
double gaussianRand (double mean, double sigm)
 Return a random number with a gaussian distribution of a certain mean and standard deviation.


Generated on Mon Oct 24 17:30:33 2005 for liban by  doxygen 1.4.2