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 1 1654269195 -1877109783 -961256264 1403523942 124639233 261424787 1836448066 1034917620 ...