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 13 Sep. 2026.
Previous versions and publish date:
(2026-07-09 06:56), 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

oii  
Crosstab and Statistical Tests for OII MSc Stats Course
Provides simple crosstab output with optional statistics (e.g., Goodman-Kruskal Gamma, Somers' d, an ...
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  
TSEwgt  
Total Survey Error Under Multiple, Different Weighting Schemes
Calculates total survey error (TSE) for a survey under multiple, different weighting schemes, using ...
Download / Learn more Package Citations See dependency  
saeMSPE  
Computing MSPE Estimates in Small Area Estimation
We describe a new R package entitled 'saeMSPE' for the well-known Fay Herriot model and nested error ...
Download / Learn more Package Citations See dependency  
cmdfun  
Framework for Building Interfaces to Shell Commands
Writing interfaces to command line software is cumbersome. 'cmdfun' provides a framework for buildi ...
Download / Learn more Package Citations See dependency  
tvmComp  
Discounting and Compounding Calculations for Various Scenarios
Functions for compounding and discounting calculations included here serve as a complete reference f ...
Download / Learn more Package Citations See dependency  

28,565

R Packages

239,283

Dependencies

75,677

Author Associations

28,566

Publication Badges

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