Skip to content
Prev 5882 / 10988 Next

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

[ 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