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 (December 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 2 Dec 2003 20:42:43 +0000
Reply-To:   John Whittington <John.W@MEDISCIENCE.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Whittington <John.W@MEDISCIENCE.CO.UK>
Comments:   To: Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
In-Reply-To:   <>
Content-Type:   text/plain; charset="us-ascii"; format=flowed

At 12:27 02/12/03 -0700, Jack Hamilton wrote:

>I'm not sure where this is documented, but it doesn't appear that the >two ranuni random number streams are independent of each other.

Jack, the pint is that the RANUNI Function (as oppsoed to the corresponding CALL RANUNI routine), and all similar functions, only generate a SINGLE pseudo-random number stream within a DATA step, regardless of how many times the function occurs within the step. In contrast, each occurrence of CALL RANUNI within a step generates a separate stream.

Historically, this difference of behaviour of the two approaches is documented under the CALL routine, not the function, although documentation for the latter does refer one to the CALL routine documentation 'for further details'.

Kind Regards,


---------------------------------------------------------------- Dr John Whittington, Voice: +44 (0) 1296 730225 Mediscience Services Fax: +44 (0) 1296 738893 Twyford Manor, Twyford, E-mail: Buckingham MK18 4EL, UK ----------------------------------------------------------------

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