Description Usage Arguments Value Author(s) See Also Examples
View source: R/makeTdmRandomSeed.r
Create first an object of type makeTdmRandomSeed
and then call the
returned value of that object (a function) as many times as you like. (It is necessary
to create the function object first to have in its environment the private storage for
the number of calls to that object.)
1 | makeTdmRandomSeed(ID = 0)
|
ID |
[0] each random seed genarator with a different ID will generate different seeds. In this way it is possible that parallel jobs ID=0,1,2,... starting in the same second are initialized with different seeds and thus produce different results. |
A function object which can be invoked without any arguments and returns each time a different integer in 0...100001+nCall. This is true even if it is called many times within the same second (where Sys.time() will return the same integer). nCall is the number of calls to this function object.
Wolfgang Konen, Patrick Koch wolfgang.konen@th-koeln.de
1 2 | tdmRandomSeed = makeTdmRandomSeed();
for (i in 1:10) print(c(as.integer(Sys.time()), tdmRandomSeed()));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.