get.seed: Recording pseudo-random number seeds

Description Usage Details Value Author(s) See Also Examples

View source: R/varComp-utilities.R

Description

get.seed obtains current pseudo-random number seeds.

Usage

1

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.

Value

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

Author(s)

Long Qu

See Also

base::.Random.seed

Examples

1
2
	set.seed(2034L)
	all.equal(get.seed(), .Random.seed, check.attributes = FALSE)

Example output

[1] TRUE

varComp documentation built on May 2, 2019, 5:15 p.m.