About Anaconda Help Download Anaconda

The 'Ziggurat' pseudo-random number generator (or PRNG), introduced by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>) and further improved by Leong et al (2005, <doi:10.18637/jss.v012.i07>), offers a lightweight and very fast PRNG for the normal, exponential, and uniform distributions. It is provided here in a small zero-dependency package. It can be used from R as well as from 'C/C++' code in other packages as is demonstrated by four included sample packages using four distinct methods to use the PRNG presented here in client package. The implementation is influenced by our package 'RcppZiggurat' which offers a comparison among multiple alternative implementations but presented here in a lighter-weight implementation that is easier to use by other packages. The PRNGs provided are generally faster than the ones in base R: on our machine, the relative gains for normal, exponential and uniform are on the order of 7.4, 5.2 and 4.7 times faster than base R. However, these generators are of potentially lesser quality and shorter period so if in doubt use of the base R functions remains the general recommendation.

copied from cf-post-staging / r-zigg
Type Size Name Uploaded Downloads Labels
conda 45.4 kB | win-64/r-zigg-0.0.2-r45hd8a2815_2.conda  6 months and 5 days ago 98 main
conda 45.5 kB | win-64/r-zigg-0.0.2-r44hd8a2815_2.conda  6 months and 5 days ago 96 main
conda 39.7 kB | osx-64/r-zigg-0.0.2-r44ha730edb_2.conda  6 months and 5 days ago 116 main
conda 40.7 kB | osx-arm64/r-zigg-0.0.2-r45hc1cd577_2.conda  6 months and 5 days ago 257 main
conda 40.9 kB | osx-arm64/r-zigg-0.0.2-r44hc1cd577_2.conda  6 months and 5 days ago 397 main
conda 39.7 kB | osx-64/r-zigg-0.0.2-r45ha730edb_2.conda  6 months and 5 days ago 121 main
conda 41.5 kB | linux-aarch64/r-zigg-0.0.2-r45h08b74da_2.conda  6 months and 5 days ago 96 main
conda 42.1 kB | linux-ppc64le/r-zigg-0.0.2-r44hb6fba7b_2.conda  6 months and 5 days ago 39 main
conda 40.7 kB | linux-64/r-zigg-0.0.2-r45h3697838_2.conda  6 months and 5 days ago 1190 main
conda 41.6 kB | linux-aarch64/r-zigg-0.0.2-r44h08b74da_2.conda  6 months and 5 days ago 99 main
conda 42.2 kB | linux-ppc64le/r-zigg-0.0.2-r45hb6fba7b_2.conda  6 months and 5 days ago 43 main
conda 40.7 kB | linux-64/r-zigg-0.0.2-r44h3697838_2.conda  6 months and 5 days ago 1695 main
conda 40.0 kB | osx-64/r-zigg-0.0.2-r44ha730edb_1.conda  6 months and 15 days ago 63 main
conda 45.7 kB | win-64/r-zigg-0.0.2-r45hd8a2815_1.conda  6 months and 15 days ago 78 main
conda 45.4 kB | win-64/r-zigg-0.0.2-r44hd8a2815_1.conda  6 months and 15 days ago 77 main
conda 40.2 kB | osx-64/r-zigg-0.0.2-r45ha730edb_1.conda  6 months and 15 days ago 71 main
conda 40.9 kB | linux-64/r-zigg-0.0.2-r44h3697838_1.conda  6 months and 15 days ago 467 main
conda 40.6 kB | linux-64/r-zigg-0.0.2-r45h3697838_1.conda  6 months and 15 days ago 464 main
conda 45.1 kB | win-64/r-zigg-0.0.2-r43h8ae3a7c_0.conda  1 year and 1 month ago 87 main
conda 44.9 kB | win-64/r-zigg-0.0.2-r44h8ae3a7c_0.conda  1 year and 1 month ago 77 main
conda 39.5 kB | osx-64/r-zigg-0.0.2-r44h2711daa_0.conda  1 year and 1 month ago 69 main
conda 39.2 kB | osx-64/r-zigg-0.0.2-r43h2711daa_0.conda  1 year and 1 month ago 74 main
conda 40.4 kB | linux-64/r-zigg-0.0.2-r44h93ab643_0.conda  1 year and 1 month ago 933 main
conda 40.4 kB | linux-64/r-zigg-0.0.2-r43h93ab643_0.conda  1 year and 1 month ago 996 main

© 2026 Anaconda, Inc. All Rights Reserved. (v4.2.15) Legal | Privacy Policy