listing of functions in the randfuncs file
void srrand(unsigned x)
This function seeds the random number generator. It takes one integer
argument as the seed. Each seed value will produce a new sequence of
random numbers.
float rrand()
This function returns a floating point value between -1.0 and 1.0.
float brrand()
This function returns a floating point value between 0.0 and 1.0.
void tsrand()
This function calls srrand() with the current time-of-day as
the seed, this creating a new sequence of random numbers every time
a particular program is run.
float gaussian()
This function returns a floating point value between 0.0 and 1.0,
but uses a gaussian probability distribution (bell-shaped curve)
centered around 0.5 to choose the random number.
float cauchy()
This function returns a floating point value between 0.0 and 1.0,
but uses the cauchy probability distribution
centered around 0.5 to choose the random number.
float linlo()
This function returns a floating point value between 0.0 and 1.0,
but uses a linear lower-limit weighting to choose the random number.
This means that numbers closer to 0.0 more likely.
float linhi()
This function returns a floating point value between 0.0 and 1.0,
but uses a linear upper-limit weighting to choose the random number.
This means that numbers closer to 1.0 more likely.
float triangle()
This function returns a floating point value between 0.0 and 1.0,
but uses a triangular weighting function
centered around 0.5 to choose the random number.