| Calling Sequence
| Rand(Geometric(p))
|
| Return Type
| integer |
| Synopsis
| This function returns a random geometrically distributed
integer with average (1-p)/p and variance (1-p)/p^2.
In mathematical terms, the probability that the outcome is i
is p*(1-p)^i (for 0 <= i).
Notice that the distribution starts at 0.
Geometric_Rand uses Rand() which can be seeded by either the
function SetRand or SetRandSeed. |
| References
| Handbook of Mathematical functions,
Abramowitz and Stegun, 26.1.24 |
| Examples
| > Rand(Geometric(0.3));
4
> Rand(Geometric(0.01));
51
|
| See also
| Beta_Rand, Binomial_Rand, ChiSquare_Rand, CreateRandSeq, Cumulative, Exponential_Rand, FDist_Rand, GammaDist_Rand, Graph_Rand, Multinomial_Rand, Normal_Rand, Poisson_Rand, SetRand, SetRandSeed, Shuffle, StatTest, Std_Score, Student_Rand, Zscore |