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  2 days and 42 minutes ago 21 main
conda 45.5 kB | win-64/r-zigg-0.0.2-r44hd8a2815_2.conda  2 days and 42 minutes ago 20 main
conda 39.7 kB | osx-64/r-zigg-0.0.2-r44ha730edb_2.conda  2 days and 43 minutes ago 16 main
conda 40.7 kB | osx-arm64/r-zigg-0.0.2-r45hc1cd577_2.conda  2 days and 43 minutes ago 17 main
conda 40.9 kB | osx-arm64/r-zigg-0.0.2-r44hc1cd577_2.conda  2 days and 45 minutes ago 15 main
conda 39.7 kB | osx-64/r-zigg-0.0.2-r45ha730edb_2.conda  2 days and 47 minutes ago 18 main
conda 41.5 kB | linux-aarch64/r-zigg-0.0.2-r45h08b74da_2.conda  2 days and 48 minutes ago 16 main
conda 42.1 kB | linux-ppc64le/r-zigg-0.0.2-r44hb6fba7b_2.conda  2 days and 49 minutes ago 8 main
conda 40.7 kB | linux-64/r-zigg-0.0.2-r45h3697838_2.conda  2 days and 50 minutes ago 35 main
conda 41.6 kB | linux-aarch64/r-zigg-0.0.2-r44h08b74da_2.conda  2 days and 50 minutes ago 15 main
conda 42.2 kB | linux-ppc64le/r-zigg-0.0.2-r45hb6fba7b_2.conda  2 days and 50 minutes ago 8 main
conda 40.7 kB | linux-64/r-zigg-0.0.2-r44h3697838_2.conda  2 days and 52 minutes ago 35 main
conda 40.0 kB | osx-64/r-zigg-0.0.2-r44ha730edb_1.conda  11 days and 21 hours ago 14 main
conda 45.7 kB | win-64/r-zigg-0.0.2-r45hd8a2815_1.conda  11 days and 21 hours ago 20 main
conda 45.4 kB | win-64/r-zigg-0.0.2-r44hd8a2815_1.conda  11 days and 21 hours ago 22 main
conda 40.2 kB | osx-64/r-zigg-0.0.2-r45ha730edb_1.conda  11 days and 21 hours ago 20 main
conda 40.9 kB | linux-64/r-zigg-0.0.2-r44h3697838_1.conda  11 days and 21 hours ago 62 main
conda 40.6 kB | linux-64/r-zigg-0.0.2-r45h3697838_1.conda  11 days and 21 hours ago 62 main
conda 45.1 kB | win-64/r-zigg-0.0.2-r43h8ae3a7c_0.conda  7 months and 5 hours ago 52 main
conda 44.9 kB | win-64/r-zigg-0.0.2-r44h8ae3a7c_0.conda  7 months and 5 hours ago 45 main
conda 39.5 kB | osx-64/r-zigg-0.0.2-r44h2711daa_0.conda  7 months and 5 hours ago 40 main
conda 39.2 kB | osx-64/r-zigg-0.0.2-r43h2711daa_0.conda  7 months and 5 hours ago 42 main
conda 40.4 kB | linux-64/r-zigg-0.0.2-r44h93ab643_0.conda  7 months and 5 hours ago 568 main
conda 40.4 kB | linux-64/r-zigg-0.0.2-r43h93ab643_0.conda  7 months and 5 hours ago 586 main

© 2025 Anaconda, Inc. All Rights Reserved. (v4.2.2) Legal | Privacy Policy