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 10 Mar. 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

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  
plyr  
Tools for Splitting, Applying and Combining Data
A set of tools that solves a common set of problems: you need to break a big problem down into mana ...
Download / Learn more Package Citations See dependency  
gena  
Genetic Algorithm and Particle Swarm Optimization
Implements genetic algorithm and particle swarm algorithm for real-valued functions. Various modific ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  

26,293

R Packages

225,784

Dependencies

70,376

Author Associations

26,294

Publication Badges

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