Other packages > Find by keyword >

zigg  

Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator
View on CRAN: Click here


Download and install zigg package within the R console
Install from CRAN:
install.packages("zigg")

Install from Github:
library("remotes")
install_github("cran/zigg")

Install by package version:
library("remotes")
install_version("zigg", "0.0.2")



Attach the package and use:
library("zigg")
Maintained by
Dirk Eddelbuettel
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2025-01-31
Latest Update: 2025-02-07
Description:
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.
How to cite:
Dirk Eddelbuettel (2025). zigg: Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator. R package version 0.0.2, https://cran.r-project.org/web/packages/zigg. Accessed 05 Jun. 2026.
Previous versions and publish date:
0.0.1 (2025-01-31 12:20)
Other packages that cited zigg R package
View zigg citation profile
Other R packages that zigg depends, imports, suggests or enhances
Complete documentation for zigg
Functions, R codes and Examples using the zigg R package
Full zigg package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

msm  
Multi-State Markov and Hidden Markov Models in Continuous Time
Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal d ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
ibb  
R Wrapper for Istanbul Municipality Open Data Portal
Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: Istanbul B ...
Download / Learn more Package Citations See dependency  
envirem  
Generation of ENVIREM Variables
Generation of bioclimatic rasters that are complementary to the typical 19 bioclim variables. ...
Download / Learn more Package Citations See dependency  
crossurr  
Cross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers
Doubly robust methods for evaluating surrogate markers as outlined in: Agniel D, Hejblum BP, Thiebau ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA