Re: [R] random numbers selection - simple example

From: Sarah Goslee <>
Date: Wed, 06 Jun 2007 10:54:58 -0400

Assuming you want only integers, see


On 6/6/07, Jenny Barnes <> wrote:
> 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,
> Jenny

Sarah Goslee

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 06 Jun 2007 - 15:41:55 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 Please read the posting guide before posting to the list.