doRNG: Generic Reproducible Parallel Backend for 'foreach' Loops

Provides functions to perform reproducible parallel foreach loops, using independent random streams as generated by L'Ecuyer's combined multiple-recursive generator [L'Ecuyer (1999), <DOI:10.1287/opre.47.1.159>]. It enables to easily convert standard '%dopar%' loops into fully reproducible loops, independently of the number of workers, the task scheduling strategy, or the chosen parallel environment and associated foreach backend.

Package details

AuthorRenaud Gaujoux [aut], Emilio L. Sáenz Guillén [cre]
MaintainerEmilio L. Sáenz Guillén <Emilio.Saenz-Guillen@citystgeorges.ac.uk>
LicenseGPL (>= 2)
Version1.8.6.3
URL https://github.com/emilioluissaenzguillen/doRNG
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("doRNG")

Try the doRNG package in your browser

Any scripts or data that you put into this service are public.

doRNG documentation built on Feb. 5, 2026, 5:08 p.m.