randomSeed: Sets and resets the .Random.seed in the global environment

randomSeedR Documentation

Sets and resets the .Random.seed in the global environment

Description

Sets and resets the .Random.seed in the global environment.

Usage

 randomSeed(action=c("set", "advance", "reset", "get"), seed=NULL, kind=NULL, backup=TRUE)

Arguments

action

A character string specifying the action.

seed

Random seed to be set; only for action="set". If length(seed) == 1, then set.seed(seed) is used, otherwise .Random.seed is assigned the value.

kind

(optional) A character string specifying type of random number generator to use, cf. RNGkind().

backup

If TRUE, the previous (seed, kind) state is recorded such that it can be reset later.

Value

Returns a .Random.seed.

Author(s)

Henrik Bengtsson


HenrikBengtsson/aroma.affymetrix documentation built on Feb. 20, 2024, 9:07 p.m.