On Sun, Apr 12, 2009 at 1:21 PM, jim holtman <jholtman at 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