You could use sample eg.
> sample(1:10,5,replace=T)
[1] 1 5 4 6 3
but there may be a more approriate function.
On Dec 7, 2007 8:59 AM, kexinz <[EMAIL PROTECTED]> wrote:
>
> I'm a beginner of R.
> I can use runif() to generate uniformly distributed numbers, but I don't
> know which function
I'm a beginner of R.
I can use runif() to generate uniformly distributed numbers, but I don't
know which function can generate uniformly distributed random integers, or
what kind of method?
Thanks!
--
View this message in context:
http://www.nabble.com/how-to-generate-uniformly-distrib
2 matches
Mail list logo