Learn R Programming

TDMR (version 2.2)

tdmRandomSeed: Generates pseudo-random random number seeds.

Description

To use this mechanism, create first an object tdmRandomSeed with a call to makeTdmRandomSeed.

Usage

tdmRandomSeed()

Arguments

Value

In each call to this function a different integer in 0...100001+nCall is returned. 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.

See Also

makeTdmRandomSeed

Examples

Run this code
# NOT RUN {
tdmRandomSeed = makeTdmRandomSeed();
for (i in 1:10) print(c(as.integer(Sys.time()), tdmRandomSeed()));

# }

Run the code above in your browser using DataLab