[Rcpp-devel] Setting seed using Rcpp
Serguei Sokol
serguei.sokol at gmail.com
Wed Feb 7 16:36:11 CET 2018
Le 07/02/2018 à 16:20, Hmamouche Youssef a écrit :
> Hi,
>
> I get a note from R CMD check for an Rcpp package:
>
> Found ‘_srand’, possibly from ‘srand’
>
> Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
>
>
>
> Is there some an equivalent function for srand from Rcpp, which i can use it inside c++ code?
If you try "rcpp random number generation" in a search engine,
the first line will point to
http://gallery.rcpp.org/articles/random-number-generation/
which probably has your answer.
Best,
Serguei.
More information about the Rcpp-devel
mailing list