getCurrentStream: Return integer representing currently selected random stream

Description Usage Value Author(s) Examples

View source: R/initPortableStreams.R

Description

The environment variable currentStates is a list of states of possible random generators. The variable currentStream indicates which of those generators is currently being used by R.

Usage

1

Value

Integer index value of currently selected stream

Author(s)

Paul E. Johnson <pauljohn@ku.edu>

Examples

1
2
3
4
5
6
mySeeds <- seedCreator(500, 5, file="mySeeds.rds", seed = 123123)
setSeeds(mySeeds, run = 17)
runif(2)
getCurrentStream()
useStream(2)
runif(2)

wjakethompson/portableParallelSeeds documentation built on Nov. 5, 2019, 12:22 p.m.