Maxima Function
random_geometric (p)
random_geometric(p,n)
Returns a Geometric(p) random variate, with 0<p<1. Calling random_geometric
with a second argument n, a random sample of size n will be simulated.
There are three algorithms implemented for this function, the one to be used can be selected giving a certain value to the global variable random_geometric_algorithm
, which defaults to bernoulli
.
See also . To make use of this function, write first load(distrib)
.