[R] random numbers selection - simple example

From: Jenny Barnes <jmb_at_mssl.ucl.ac.uk>
Date: Wed, 06 Jun 2007 15:30:44 +0100 (BST)

Dear R-help,

Which random number generator function would you recommend for simply picking 15 random numbers from the sequence 0-42? I want to use replacement (so that the same number could potentially be picked more than once).

I have read the R-help archives and the statistics and computing book on modern Applied statistics with S but the advice seems to be for much form complicated examples, there must be a simpler way for what I am trying to do?

If anybody can help me I would greatly appreciate your advice and time,

Best Wishes,


Jennifer Barnes
PhD student: long range drought prediction Climate Extremes Group
Department of Space and Climate Physics
University College London
Holmbury St Mary
Dorking, Surrey, RH5 6NT
Web: http://climate.mssl.ucl.ac.uk

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. Received on Wed 06 Jun 2007 - 15:18:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Jun 2007 - 16:31:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.