On Sun, Apr 12, 2009 at 1:21 PM, jim holtman <jholt...@gmail.com> wrote: > floor(runif(1000, 1,101)) > >> I need to generate random integer(s) in a range (say that beetween 1 to >> 100) in R.
Another way: sample(1:100,1000,replace=T) Paul ______________________________________________ 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.