resetSeed: Re-randomize seed

View source: R/resetSeed.R

resetSeedR Documentation

Re-randomize seed

Description

If the seed has been set, this will un-set it.

Usage

resetSeed()

Examples

set.seed(13) # set an arbitrary seed
rnorm(5)     # see the resulting "random" values
set.seed(13) # re-set the same arbitrary seed
rnorm(5)     # see the same "random" values
set.seed(13) # re-set the same arbitrary seed
resetSeed()  # un-set the current seed
rnorm(5)     # see different "random" values


akcochrane/ACmisc documentation built on Nov. 24, 2024, 11:22 a.m.