How to get current seed from current state in R?

184 views Asked by At

How can I get the current seed from the current RNG state in R? For instance,

a <- 1987
set.seed(a) 
b <- .Random.seed 

How can I retrieve a (i.e., 1987) from b? Thank you.

0

There are 0 answers