Learn R Programming

rxode2random (version 2.1.1)

rxGetSeed: Get the rxode2 seed

Description

Get the rxode2 seed

Usage

rxGetSeed()

Arguments

Value

rxode2 seed state or -1 when the seed isn't set

See Also

rxSetSeed, rxWithSeed, rxWithPreserveSeed

Examples

Run this code

# without setting seed

rxGetSeed()
# Now set the seed
rxSetSeed(42)

rxGetSeed()

rxnorm()

rxGetSeed()

# don't use the rxode2 seed again

rxSetSeed(-1)

rxGetSeed()

rxnorm()

rxGetSeed()

Run the code above in your browser using DataLab