Skip to contents

Get the rxode2 seed

Usage

rxGetSeed()

Value

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

See also

rxSetSeed, rxWithSeed, rxWithPreserveSeed

Examples


# without setting seed

rxGetSeed()
#> [1] -1
# Now set the seed
rxSetSeed(42)

rxGetSeed()
#> [1] 42

rxnorm()
#> [1] 0.2229005

rxGetSeed()
#> [1] 44

# don't use the rxode2 seed again

rxSetSeed(-1)

rxGetSeed()
#> [1] -1

rxnorm()
#> [1] -0.8344933

rxGetSeed()
#> [1] -1