Learn R Programming

RcppArmadillo (version 15.0.2-2)

armadillo_set_seed_random: Set the Armadillo Random Number Generator to given or random value

Description

Setter functions for the internal Armadillo random number generator

Usage

armadillo_set_seed_random()

armadillo_set_seed(val)

Value

The function is invoked for its side effect and has no return value.

Arguments

val

The seed used to initialize Armadillo's random number generator.

Details

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.

See Also

The R documentation on its RNGs all of which are accessible via Rcpp.