Package: dqrng 0.4.1.1

Ralf Stubner

dqrng: Fast Pseudo Random Number Generators

Several fast random number generators are provided as C++ header only libraries: The PCG family by O'Neill (2014 <https://www.cs.hmc.edu/tr/hmc-cs-2014-0905.pdf>) as well as the Xoroshiro / Xoshiro family by Blackman and Vigna (2021 <doi:10.1145/3460772>). In addition fast functions for generating random numbers according to a uniform, normal and exponential distribution are included. The latter two use the Ziggurat algorithm originally proposed by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>). The fast sampling methods support unweighted sampling both with and without replacement. These functions are exported to R and as a C++ interface and are enabled for use with the default 64 bit generator from the PCG family, Xoroshiro128+/++/** and Xoshiro256+/++/** as well as the 64 bit version of the 20 rounds Threefry engine (Salmon et al., 2011, <doi:10.1145/2063384.2063405>) as provided by the package 'sitmo'.

Authors:Ralf Stubner [aut, cre], daqana GmbH [cph], David Blackman [cph], Melissa O'Neill [cph], Sebastiano Vigna [cph], Aaron Lun [ctb], Kyle Butts [ctb], Henrik Sloot [ctb], Philippe Grosjean [ctb]

dqrng_0.4.1.1.tar.gz
dqrng_0.4.1.1.zip(r-4.7)dqrng_0.4.1.1.zip(r-4.6)dqrng_0.4.1.1.zip(r-4.5)
dqrng_0.4.1.1.tgz(r-4.6-x86_64)dqrng_0.4.1.1.tgz(r-4.6-arm64)dqrng_0.4.1.1.tgz(r-4.5-x86_64)dqrng_0.4.1.1.tgz(r-4.5-arm64)
dqrng_0.4.1.1.tar.gz(r-4.7-arm64)dqrng_0.4.1.1.tar.gz(r-4.7-x86_64)dqrng_0.4.1.1.tar.gz(r-4.6-arm64)dqrng_0.4.1.1.tar.gz(r-4.6-x86_64)
dqrng_0.4.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
dqrng/json (API)
NEWS

# Install 'dqrng' in R:
install.packages('dqrng', repos = c('https://mrc-ide.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/daqana/dqrng/issues

Pkgdown/docs site:https://daqana.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

randomrandom-distributionsrandom-generationrandom-samplingrngcpp

12.63 score 48 stars 240 packages 227 scripts 54k downloads 14 exports 3 dependencies

Last updated from:a474001291 (on main). Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK143
linux-devel-x86_64OK154
source / vignettesOK195
linux-release-arm64OK138
linux-release-x86_64OK152
macos-release-arm64OK94
macos-release-x86_64OK209
macos-oldrel-arm64OK91
macos-oldrel-x86_64OK244
windows-develOK177
windows-releaseOK157
windows-oldrelOK156
wasm-releaseOK112

Exports:dqrexpdqrmvnormdqrng_get_statedqrng_set_statedqRNGkinddqrnormdqrrademacherdqrunifdqsampledqsample.intdqset.seedgenerateSeedVectorsregister_methodsrestore_methods

Dependencies:BHRcppsitmo

C++ API

Rendered fromcpp-api.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2024-05-12
Started: 2019-04-22

Fast Pseudo Random Number Generators for R

Rendered fromdqrng.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2024-04-21
Started: 2018-04-19

Fast sampling methods

Rendered fromsample.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2023-08-30
Started: 2023-07-30

Parallel RNG usage

Rendered fromparallel.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2024-05-12
Started: 2018-06-08

Readme and manuals

Help Manual

Help pageTopics
dqrng: Fast Pseudo Random Number Generatorsdqrng-package dqrng
Multivariate Distributionsdqrmvnorm
R interfacedqrexp dqRNGkind dqrng_get_state dqrng_set_state dqrnorm dqrrademacher dqrunif dqset.seed
Unbiased Random Samples and Permutationsdqsample dqsample.int
Generate seed as a integer vectorgenerateSeedVectors
Registering as user-supplied RNGregister_methods restore_methods