Learn R Programming

varComp (version 0.2-0)

get.seed: Recording pseudo-random number seeds

Description

get.seed obtains current pseudo-random number seeds.

Usage

get.seed()

Arguments

Value

A numeric vector of .Random.seed, with RNGkind attribute being the result from calling RNGkind().

Details

This function obtain the .Random.seed object in the global environment. If it is absent, runif(1L) is called and then the seed is obtained.

See Also

base::.Random.seed

Examples

Run this code
# NOT RUN {
	set.seed(2034L)
	all.equal(get.seed(), .Random.seed, check.attributes = FALSE)
# }

Run the code above in your browser using DataLab