s-news
[Top] [All Lists]

Réf. : random number

To: s-news@lists.biostat.wustl.edu
Subject: Réf. : random number
From: asanquer@virbac.fr
Date: Fri, 24 Oct 2003 14:22:28 +0200
Sensitivity:
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







<Prev in Thread] Current Thread [Next in Thread>
  • Réf. : random number, asanquer <=