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