# NOT RUN {
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qbinom
vbinom(3, size = 10, prob = 0.25)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qbinom
vbinom(3, 10, 0.25, stream = 1)
vbinom(3, 10, 0.25, stream = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qbinom
vbinom(1, 10, 0.25, stream = 1)
vbinom(1, 10, 0.25, stream = 2)
vbinom(1, 10, 0.25, stream = 1)
vbinom(1, 10, 0.25, stream = 2)
vbinom(1, 10, 0.25, stream = 1)
vbinom(1, 10, 0.25, stream = 2)
set.seed(8675309)
variates <- vbinom(1000, 10, 0.25, stream = 1)
set.seed(8675309)
variates <- vbinom(1000, 10, 0.25, stream = 1, antithetic = TRUE)
# }
Run the code above in your browser using DataLab