LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 --


Back to: Top of message | Previous page | Main SAS-L page