sitmo_two_seeds | R Documentation |
Shows how to create two separate RNGs and increase them together.
sitmo_two_seeds(n, seeds)
n |
An |
seeds |
A |
A matrix
with random sequences.
n = 10
a = sitmo_two_seeds(n, c(1337, 1338))
b = sitmo_two_seeds(n, c(1337, 1337))
isTRUE(all.equal(a[,1], a[,2]))
isTRUE(all.equal(b[,1], b[,2]))
isTRUE(all.equal(a[,1], b[,1]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.