Skip to contents

Retrieves the current random seed (.Random.seed in the global environment), and initializes the RNG first, if necessary.

Usage

get_seed()

Value

integer(). Depends on the base::RNGkind().

Examples

str(get_seed())
#>  int [1:626] 10403 100 159705241 328572203 -1275833318 -1733507364 -1117212961 1787119797 -321814964 -1160453470 ...