From ripley at stats.ox.ac.uk  Tue May 15 06:40:02 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 15 May 2007 05:40:02 +0100 (BST)
Subject: [Rd] set_seed
In-Reply-To: <dd68e78f3a1d.464896a8@usc.edu>
References: <dd68e78f3a1d.464896a8@usc.edu>
Message-ID: <Pine.LNX.4.64.0705150534260.13138@gannet.stats.ox.ac.uk>

On Mon, 14 May 2007, Tong Wang wrote:

> Hi, All:

>   It seemed set_seed is usable only when Rmath is used as a standalone 
> library, then what should I use when I need to link to R.dll.

When you link to R.dll you are running R, so you can call set.seed() via 
eval or via do_setseed.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] set_seed
Prof Brian Ripley