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***
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
----------------------------------------------------------------
|