| armadillo_set_seed_random | R Documentation |
Setter functions for the internal Armadillo random number generator
armadillo_set_seed_random()
armadillo_set_seed(val)
val |
The seed used to initialize Armadillo's random number generator. |
Armadillo can switch between two random number generator implementations depending
on the compilation standard used. Under normal circumstances RcppArmadillo will connect
Armadillo to the R random number generator which also implies that set.seed()
should be used from R. To use this function, one also needs to undefine ARMA_RNG_ALT
so that the Armadillo generators are used.
The function is invoked for its side effect and has no return value.
This has been found to not work as expected in RStudio as its code also uses the system RNG library. You may have to either not run within RStudio or change your code to use a different RNG such as the one from R.
The R documentation on its RNGs all of which are accessible via Rcpp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.