randomSeeds | R Documentation |
Functions to save and restore seeds for random number generators
saveSeed() restoreSeed(oldseed)
oldSeed |
a seed to be restored, or NULL if the seed hadn't been set |
If easyPlot is called without minimum and maximum x or y co-ordinates, the functions for the art object are run twice. The first time generates the co-ordinates to be used when plotted for real a second time. To ensure random variables return the same result both times, the seed for random variables is saved before the first run and reset for the second run.
saveSeed returns the current seed or NULL if not set. restoreSeed doesn't return anything.
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.