# NOT RUN {
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qgamma
vgamma(3, shape = 2, rate = 1)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qgamma
vgamma(3, 2, scale = 1, stream = 1)
vgamma(3, 2, scale = 1, stream = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qgamma
vgamma(1, 2, scale = 1, stream = 1)
vgamma(1, 2, scale = 1, stream = 2)
vgamma(1, 2, scale = 1, stream = 1)
vgamma(1, 2, scale = 1, stream = 2)
vgamma(1, 2, scale = 1, stream = 1)
vgamma(1, 2, scale = 1, stream = 2)
set.seed(8675309)
variates <- vgamma(1000, 2, scale = 1, stream = 1)
set.seed(8675309)
variates <- vgamma(1000, 2, scale = 1, stream = 1, antithetic = TRUE)
# }
Run the code above in your browser using DataLab