Gets a list of streams of L'Ecuyer-CMRG seeds.
Usage
ssd_get_seeds_streams(
seed = NULL,
...,
nseeds = 1L,
nstreams = 1L,
start_seed = 1L,
start_stream = 1L
)
Arguments
- seed
An integer of the starting seed or NULL.
- ...
Unused.
- nseeds
A count of the number of new seeds to get for each stream.
- nstreams
A count of the number of streams.
- start_seed
A count of the number of the seed to start getting seeds from.
- start_stream
A count of the number of the stream to start getting streams from.
Examples
withr::with_seed(10,
ssd_get_seeds_streams(nseeds = 2, nstreams = 2)
)
#> [[1]]
#> [[1]][[1]]
#> [1] 10407 -1852613690 1473416771 -413238268 -5614164 596817356
#> [7] -2081937358
#>
#> [[1]][[2]]
#> [1] 10407 -523009245 2009368735 379397622 26024764 -450628420 -210045713
#>
#>
#> [[2]]
#> [[2]][[1]]
#> [1] 10407 -1042938847 -13114459 -1935556892 592316643 -438891301
#> [7] 955739111
#>
#> [[2]][[2]]
#> [1] 10407 230991481 -256723208 -88519410 725862280 1903914935
#> [7] -1657458893
#>
#>
withr::with_seed(10,
ssd_get_seeds_streams(nseeds = 1, nstreams = 2, start_seed= 2)
)
#> [[1]]
#> [[1]][[1]]
#> [1] 10407 -523009245 2009368735 379397622 26024764 -450628420 -210045713
#>
#>
#> [[2]]
#> [[2]][[1]]
#> [1] 10407 230991481 -256723208 -88519410 725862280 1903914935
#> [7] -1657458893
#>
#>