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 ) as well as the Xoroshiro / Xoshiro family by Blackman and Vigna (2021 ). 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, ). 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, ) as provided by the package 'sitmo'.

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

Documentation


Team


Insights

Last 30 days

Last 365 days

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

  • Depends1 package
  • Imports1 package
  • Suggests7 packages
  • Linking To3 packages
  • Reverse Imports11 packages
  • Reverse Suggests2 packages