Skip to content
Prev 110131 / 398500 Next

Random Integers

Sure.

rpois(n, lambda)

... will do it.  But you should tell us something about how you want your
numbers to be distributed, since rpois() produces integers having a Poisson
distribution.

Charles Annis, P.E.

Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Anup Nandialath
Sent: Sunday, February 25, 2007 1:51 AM
To: r-help at stat.math.ethz.ch
Subject: [R] Random Integers

Hi all,

Is there an R function to generate random integers?  Thanks in advance.

Sincerely

Anup

 
---------------------------------
Now that's room service! Choose from over 150,000 hotels 


______________________________________________
R-help at stat.math.ethz.ch 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.