Thanks for all replies.
This is in fact a permutation and sample(100) do exactly what I want.
annaële Sanquer
Hi everybody,
I have a quiet simple problem, but I can't find the solution.
I would like to generate a sample,componed of all integers between 1 and
100, but randomly distributed.
But I don't want to have repetition: each number must appear, but only one
time.
I try :
round(runif(100)*100,digits=0)
but this command provides me a sample with some repetition (the number 60
could appear twice for example).
Thanks for your help.
annaële Sanquer
|