Message-ID: <1332436435.45840.YahooMailNeo@web161903.mail.bf1.yahoo.com>
Date: 2012-03-22T17:13:55Z
From: Michael Hannon
Subject: [Rcpp-devel] R random numbers vs c++
In-Reply-To: <4F6B1DE6.2070008@mpi-inf.mpg.de>
>Is there a reason to prefer Rcpp::runif over the c++ rand() for, say,
>accepting a state in a Markov chain simulation? Is one more random than
>another? faster?
FWIW, the random-number stuff in C++11 appears to be greatly expanded:
??? http://en.wikipedia.org/wiki/C%2B%2B11#Extensible_random_number_facility
This is discussed in some more detail in, for instance:
??? http://www.amazon.com/Professional-C-Wrox-Guides/dp/0470932449/ref=sr_1_1?ie=UTF8&qid=1332436173&sr=8-1
It's my understanding the Rcpp does not (yet?) support C++11.
-- Mike