From p.dalgaard@kubism.ku.dk  Tue Jun  3 16:14:09 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 03 Jun 1997 17:14:09 +0200
Subject: R-alpha: unif_rand() again
In-Reply-To: Kurt Hornik's message of Tue, 3 Jun 1997 16:45:11 +0200
References: <199706031445.QAA13652@aragorn.ci.tuwien.ac.at>
Message-ID: <x2yb8r4t31.fsf@bush.kubism.ku.dk>

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

> 
> Just out of curiosity, here is a question that might be embarrasingly
> stupid.  Hmm ...
> 
> What I need is to call runif() (more precisely, `runif(1, 0, 1)') from
> inside a C function.  Is this possible using call_S?  If so, how?

Hmm ... Stupid counter-question: Did you study the zfun() function in
$RHOME/demos/dynload/zero.c ? Looks pretty straightforward to me,
except that I have no offhand guess what the 0L argument to call_S is
good for. Peeking at the source should cure that.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: unif_rand() again
Peter Dalgaard BSA