[R] Random Integers

Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com
Sun Feb 25 15:32:33 CET 2007


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 

	[[alternative HTML version deleted]]

______________________________________________
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.



More information about the R-help mailing list