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 30 Jul. 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

bootUR  
Bootstrap Unit Root Tests
Set of functions to perform various bootstrap unit root tests for both individual time series (incl ...
Download / Learn more Package Citations See dependency  
extremefit  
Estimation of Extreme Conditional Quantiles and Probabilities
Extreme value theory, nonparametric kernel estimation, tail conditional probabilities, extreme cond ...
Download / Learn more Package Citations See dependency  
SRCS  
Statistical Ranking Color Scheme for Multiple Pairwise Comparisons
Implementation of the SRCS method for a color-based visualization of the results of multiple pairwis ...
Download / Learn more Package Citations See dependency  
RolWinMulCor  
Subroutines to Estimate Rolling Window Multiple Correlation
Rolling Window Multiple Correlation ('RolWinMulCor') estimates the rolling (running) window correlat ...
Download / Learn more Package Citations See dependency  
radiant.data  
Data Menu for Radiant: Business Analytics using R and Shiny
The Radiant Data menu includes interfaces for loading, saving, viewing, visualizing, summarizing, t ...
Download / Learn more Package Citations See dependency  
trajectories  
Classes and Methods for Trajectory Data
Classes and methods for trajectory data, with support for nesting individual Track objects in track ...
Download / Learn more Package Citations See dependency  

27,987

R Packages

239,283

Dependencies

74,234

Author Associations

27,988

Publication Badges

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