Date: Mon, 10 Nov 2003 14:04:55 -0500
Reply-To: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject: Re: create uniq random numbers from 1-100
"Jamil Ibrahim" <jibrahim@IR.UMSMED.EDU> wrote in message
news:sfaf6ca1.056@GWIA1.UMSMED.EDU...
hi sas uers
I am trying to generate 100 numbers from 1 to 100 randomely and unique.
I did this which needs to get rid of duplicates;
options nodate nonumber;
dm "log;clear;out;clear;";
data random;
do i=1 to 100;
x=1+99*ranuni(0);x=floor(x);output; end;
run;
proc sort; by x;proc print;run;
thanks'.
Jamil:
Have a read of the thread
http://groups.google.com/groups?as_ugroup=comp.soft-sys.sas&as_usubject=52
playing cards
Richard
--
|