Using RngStreams for Parallel Random Number Generation in C++ and R
arXiv:1403.7645 · doi:10.1007/s00180-014-0492-3
Abstract
The RngStreams software package provides one viable solution to the problem of creating separate random number streams for simulations in parallel processing environments. Techniques are presented for effectively using RngStreams with C++ programs that are parallelized via OpenMP or MPI. Ways to access the backbone generator from RngStreams in R through the parallel and rstream packages are also described. The ideas in the paper are illustrated with both a simple running example and a Monte Carlo integration application.
arXiv comment20 pages; original supplementary code included. Corrects notation, references and code descriptions; clarifies stream allocation, mclapply, importance sampling and LSAT Section VII. Numerical examples and timing results unchanged. Corrections made with Codex (GPT-6 Astra). First-author audit disclosure included