s-news
[Top] [All Lists]

random number

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