double betadev(double a, double b, long* seed);
Returns a beta distributed deviate with parameters a and b, using RAND(idum) as the source of uniform deviates.
Parameters:
a | Alpha shape parameter |
---|---|
b | Beta shape parameter |
seed | Random number generator seed. |
Returns:
The next random number from the generator.
Usage:
Initialization of the generator depends on the implementation of RAND choosen by the user. To generate the next random number simply call
double r = betadev(1.5, 2.5, &seed)
Header:
#include "deviate.h"
See also:
RAND