Date: Thu, 21 Jul 2005 09:12:33 -0400
Reply-To: Susie Li <Susie.Li@TVGUIDE.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Susie Li <Susie.Li@TVGUIDE.COM>
Subject: An easy way to generate random numbers without replacement
Content-Type: text/plain
Hi all,
I have the need to assign a 7-digit-long ID number randomly to 500,000
subjects.
I tried to use ranuni() to do the job, and ended up with many duplicated
IDs. Is there an easier way to guarantee non-repeatable random IDs?
Susie Li
TV Guide
1211 Avenue of the Americas
New York, NY 10036
Tel 212.852.7453
Email susie.li@tvguide.com
|