dqrng

Fast Pseudo Random Number Generators

CRAN Package

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

  • Version0.4.1
  • R versionunknown
  • LicenseAGPL-3
  • Needs compilation?Yes
  • Last release05/28/2024

Documentation


Team


Insights

Last 30 days

This package has been downloaded 36,369 times in the last 30 days. The downloads are officially high enough to crash an underfunded departmental server. Quite an accomplishment! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 1,224 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 downloadsMar 3, 2025
0 downloadsMar 4, 2025
1,471 downloadsMar 5, 2025
1,397 downloadsMar 6, 2025
1,237 downloadsMar 7, 2025
647 downloadsMar 8, 2025
667 downloadsMar 9, 2025
1,326 downloadsMar 10, 2025
1,527 downloadsMar 11, 2025
1,416 downloadsMar 12, 2025
1,555 downloadsMar 13, 2025
1,176 downloadsMar 14, 2025
635 downloadsMar 15, 2025
601 downloadsMar 16, 2025
1,367 downloadsMar 17, 2025
1,635 downloadsMar 18, 2025
1,592 downloadsMar 19, 2025
1,479 downloadsMar 20, 2025
1,198 downloadsMar 21, 2025
610 downloadsMar 22, 2025
554 downloadsMar 23, 2025
1,540 downloadsMar 24, 2025
1,598 downloadsMar 25, 2025
1,808 downloadsMar 26, 2025
1,462 downloadsMar 27, 2025
1,200 downloadsMar 28, 2025
798 downloadsMar 29, 2025
684 downloadsMar 30, 2025
1,305 downloadsMar 31, 2025
1,378 downloadsApr 1, 2025
1,282 downloadsApr 2, 2025
1,224 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
554
1,808

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 449,964 times in the last 365 days. That's a whole lot of downloads. Somewhere, a librarian is trying to figure out why more bandwidth is needed. The day with the most downloads was May 29, 2024 with 5,052 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports1 package
  • Suggests7 packages
  • Linking To3 packages
  • Reverse Imports7 packages
  • Reverse Suggests2 packages