Create a set of initial random number seeds suitable for using within a distributed context (over multiple processes or nodes) at a level higher than a single group of synchronised threads.
dust_rng_distributed_state( seed = NULL, n_streams = 1L, n_nodes = 1L, algorithm = "xoshiro256plus" ) dust_rng_distributed_pointer( seed = NULL, n_streams = 1L, n_nodes = 1L, algorithm = "xoshiro256plus" )
Initial seed to use. As for dust_rng, this can
The number of streams to create per node. If
passing the results of this seed to a dust object's initialiser
(see dust_generator) you can safely leave this at 1, but
if using in a standalone setting, and especially if using
The number of separate seeds to create. Each will be separated by a "long jump" for your generator.
The name of an algorithm to use. Alternatively
vignette("rng_distributed") for a proper introduction to
A list of either raw vectors (for
dust_rng_distributed_state) or of dust_rng_pointer
dust::dust_rng_distributed_state(n_nodes = 2) dust::dust_rng_distributed_pointer(n_nodes = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.