Date: Fri, 18 Apr 2008 13:30:33 -0400
Reply-To: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Subject: Re: anybody can help with this function?
Content-Type: text/plain; charset="us-ascii"
Perhaps a simple example would help:
do i=1 to 100;
if ranuni(12371)>0.5 then y=1;
/* Only for purpose of showing random value and that same seed
generates same series. */
put i= x= y= ;
The variable y should have about a value of 1 in about 50% of the rows
of test. Nonetheless, each subsequent value of y in test has a ~50%
chance of having a value or 0 instead of 1.
From: email@example.com [mailto:firstname.lastname@example.org]
On Behalf Of AnoniDeer
Sent: Friday, April 18, 2008 12:05 PM
Subject: anybody can help with this function?
I am so confused with the function ranuni(), anybody can help?