You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
You can use the negative binomial random number generator, since the geometric distribution is just the negative binomial distribution for 1 success. See help rnbinomial.
Comment