I want to get random numbers from Gamma distribution, when I do

rgamma(1.95, 2)
[1] 2.313977

but,
rgamma(2, 2)
[1] 2.7985347 0.9415515

Why do I get two random numbers?  It's the same density function, I don't
see why the output should be a pair of numbers, is this explained in the
documentation?

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to