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