Skip to content

dqrng

Fast Pseudo Random Number Generators

v0.4.1 · May 28, 2024 · AGPL-3

Description

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'.

Downloads

48.3K

Last 30 days

524th

141.2K

Last 90 days

522.4K

Last year

Trend: +6.2% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (13)

Dependency Network

Dependencies Reverse dependencies Rcpp FunChisq GridOnClusters HDMAADMM colorrepel greeks rnndescent tetragon bgms dexter melt uwot AdaptGauss SpaDES.tools dqrng

Version History

new 0.4.1 Mar 10, 2026
updated 0.4.1 ← 0.4.0 diff May 28, 2024
updated 0.4.0 ← 0.3.2 diff May 14, 2024
updated 0.3.2 ← 0.3.1 diff Nov 28, 2023
updated 0.3.1 ← 0.3.0 diff Aug 29, 2023
updated 0.3.0 ← 0.2.1 diff Apr 30, 2021
updated 0.2.1 ← 0.2.0 diff May 16, 2019
updated 0.2.0 ← 0.1.1 diff Apr 21, 2019
updated 0.1.1 ← 0.1.0 diff Mar 10, 2019
updated 0.1.0 ← 0.0.5 diff Mar 3, 2019
updated 0.0.5 ← 0.0.4 diff Jan 30, 2019
updated 0.0.4 ← 0.0.3 diff Jun 7, 2018
updated 0.0.3 ← 0.0.2 diff May 13, 2018
new 0.0.2 May 10, 2018