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 (August 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 27 Aug 2001 21:36:29 -0500
Reply-To:     aldi@wubios.wustl.edu
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Aldi Kraja <aldi@WUBIOS.WUSTL.EDU>
Organization: Washington University
Subject:      random 0s and 1s:
Content-Type: text/plain; charset=us-ascii

Good afternoon,

Is there any other method that outputs random 0s and 1s?

data random; do m=1 to 10000; seed=-1; y=0.5+ rannor(seed); if y>0.499999999999999 then y=1; else y=0; output; end; run; proc univariate normal plot; var y; run;

TIA, Aldi --


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