Re: [R] random numbers selection - simple example

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

Assuming you want only integers, see
?sample

Sarah

On 6/6/07, Jenny Barnes <jmb_at_mssl.ucl.ac.uk> 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
http://www.functionaldiversity.org

______________________________________________
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: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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.