[R] distinct random number

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Thu Feb 26 00:18:30 CET 2004


?sample

sample(0:m, n)

-sd

li xian wrote:

> How to express n distinct numbers between 0 and m? ( In R )
> Thanks!
> 
> 
> ---------------------------------
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list