[R] How to choose 3 random numbers from 1 up to 9?

From: Ettinger, Nicholas <nicholas-ettinger_at_uiowa.edu>
Date: Fri, 30 Nov 2007 13:48:24 -0600


Hello all,

For the not-so-deeply-mathematically/statistically-literate, what is the simplest command with which to choose three "random" numbers from the integer list 1 up to 9?

After reading the ".Random.seed" help page along with several others, it seems like the one simple choice might be:

round(rnorm(1:3,4.5,1))

??

Any thoughts? Suggestions or better ideas most welcome!

Thank you.
--Nick Ettinger



R-help_at_r-project.org 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 Fri 30 Nov 2007 - 19:53:11 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 Fri 30 Nov 2007 - 20:30:16 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.