[Rcpp-devel] Random Numbers in Armadillo - What algorithm?

Dirk Eddelbuettel edd at debian.org
Fri May 24 15:57:55 CEST 2013


[ Resending to list after I initially replied to Simon only first --Dirk ]

On 24 May 2013 at 15:14, Simon Zehnder wrote:
| Dear Rcpp-Devels,
| 
| I was wondering about the RNG in Armadillo (2.0 and 3.0 - functions rand and randu). What kind of algirthm does it use? Mersenne-Twister (Seed=0)?

First off, RcppArmadillo only wraps Armadillo making this an Armadillo
question.  Second, have you tried to look at the sources?  The file

     include/armadillo_bits/eop_aux.hpp

probably has what you are looking for.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list