makeTdmRandomSeed: Factory method to make a function generating pseudo-random...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/makeTdmRandomSeed.r

Description

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.)

Usage

1

Arguments

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.

Value

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.

Author(s)

Wolfgang Konen, Patrick Koch wolfgang.konen@th-koeln.de

See Also

tdmRandomSeed

Examples

1
2

TDMR documentation built on March 3, 2020, 1:06 a.m.