Dear Rcpp-Devels,

I am right now working on a simulation where I use the 'randn()' function of 
Armadillo. I know, that the seed can be controlled via std::srand(). What I 
would like to know is: What kind of Generator is used by Armadillo? Can I in 
some way use the std::mt19937 or std::mt19937_64 random generator from the C++ 
random header? Actually this object is an instantiation of the 
mersenne_twister_engine, which is then for instance passed to the C++ 
'shuffle()' function from the algorithm header. How to make Armadillo aware of 
the mersenne_twister_engine is something I haven't understood yet. 

Has anyone experience with this? 


Best

Simon


_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to