resetSeed | R Documentation |
If the seed has been set, this will un-set it.
resetSeed()
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.