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:46:45 +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>
Subject:      Re: THANKS***PROBLEM USING RANUNI AND FLOOR FUNCTION TO CREATE
              FAKE DATA***
Comments: To: Cybie Frontier <cybie@HOTMAIL.COM>
In-Reply-To:  <E1ARGzP-00014o-00@coumxnn02.netbenefit.co.uk>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 20:19 02/12/03 +0000, Cybie Frontier wrote:

>Thank you all for explaining the apparent anomaly that I noticed using >RANUNI. I am using the following code as suggested by Ian Whitlock and >everything is as expected. I am glad you knew about this because it is >definitely not documented in my SAS language manual.

It is documented. The documentation for the RANUNI function has always referred one to the documentation for the CALL RANUNI routine 'for further details', and if one looks in that latter documentation, one sees that the difference is explained - in particular, that ".... The CALL RANUNI statement produces a separate stream for each seed, while the RANUNI function produces only a single stream of random variates, even with multiple RANUNI function occurrences in the same DATA step."

Kind Regards,

John

---------------------------------------------------------------- Dr John Whittington, Voice: +44 (0) 1296 730225 Mediscience Services Fax: +44 (0) 1296 738893 Twyford Manor, Twyford, E-mail: John.W@mediscience.co.uk Buckingham MK18 4EL, UK mediscience@compuserve.com ----------------------------------------------------------------


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