## Distribution class public functions

Distribution(void);
Distribution(int aSeed);
Sets the default distribution type to uniform. If no random number seed is given, then the time in seconds since the beginning of 1970 will be used.
virtual ~Distribution();
Does nothing.
The following functions set the random number distribution type. The setType function can also be used. Parameters passed to these functions will be stored and will be used again after seting another distribution and then returning to the same distribution with no parameters.
void doBeta(void);
void doBeta(floatType Avalue, floatType Bvalue);
Set the random type to a Beta distribution.
void doBilateral(void);
void doBilateral(floatType aLambda);
Set the random type to a Bilateral distribution. Same as an Exponential distribution, and its mirror image.
void doCauchy(void);
Sets the distribution type to Cauchy. Similar to a Gaussian distribution, but the random numbers spread out more from the mean. 50% of the values will lie +/- spread away from the mean.
void doExponential(void);
void doExponential(floatType aLambda);
Sets the distribution to exponential.
void doGaussian(void);
void doGaussian(floatType mean, floatType deviation);
Sets the distribution to Gaussian.
void doLinear(void);
Sets the distribution type to linear. Numbers in the range [0.0 .. 1.0] will be generated with the greatest probability of generating a number in the lower part of the range.
void doPoisson(void);
void doTriangular(void);
void doTriangular(floatType aLowerLimit, floatType aMax, floatType anUpperLimit);
Sets the distribution type to triangular. Numbers in the range [aLowerLimit .. anUpperLimit] will be generated with the greatest probability of generating aMax somewhere in the middle of the range.
void doUniform(void);
void doUniform(floatType aRange, floatType aMean);
Sets the distribution type to uniform. Numbers in the range [0.0 .. 1.0] will be generated with equal probability for getting any number in that range.
void doWeibull(void);
void doWeibull(floatType t, floatType s);
Sets the distribution type to Weibull. Resulting random number are positive.
int getType (void);
Returns the type of distribution being calculated. See the setType function for a list of available distributions.
void seed (int seed);
Set the random number generator to a specific state.
int setType (int newDistributionType);
Sets the distribution type. The types of distributions are:
 Uniform Distribution UNIFORM 0 Linear Distribution LINEAR 1 Triangular Distribution TRIANGULAR 2 Exponential Distribution EXPONENTIAL 3 Bilateral Distribution BILATERAL 4 Gaussian Distribution GAUSSIAN 5 Cauchy Distribution CAUCHY 6 Beta Distribution BETA 7 Weibull Distribution WEIBULL 8 Poisson Distribution POISSON 9
floatType value (void);
Returns a random number according to the currently selected distribution.
```

```