> Is there an R function to generate random integers? Thanks in advance. For example, if you want 5 random integers from the sequence 1:50, you can do the following: sample(1:50,5) Paul