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