Skip to contents

Fetch, and set, the random number generator (RNG) state from the system.

Usage

dust_system_rng_state(sys)

dust_system_set_rng_state(sys, rng_state)

Arguments

sys

A dust_system object

rng_state

A raw vector of random number generator state, returned by dust_system_rng_state

Value

A raw vector, this could be quite long.

See also

You can pass the state you get back from this function as the seed object to dust_system_create and dust_system_set_rng_state