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 105 -781090598 1585850780 705639839 1827309557 1291421324 -1208044702 895048509 576965559 ...