Skip to content

zigg

0.0.2

Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator

4packages depend
266.2Kdownloads / year
100.0%test coverage
13/13checks pass

Overview

About
Maintained by Dirk EddelbuettelFirst published 2025-01-312 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 2.0 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 1.79
100.0%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 594 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
50%

Downloads

266.2K
CRAN downloads in the past year
Rank #860 · ~729/day · ~22.2K/mo
Daily download trend is not available in this view yet.
15.9K30 days
53.6K90 days
266.2K1 year
Compare downloads with other packages →
Also on8.8K r2u10 autocran14K conda_forge

Repository

Repository
8Stars
0Forks
0Open issues
0Open PRs
0Releases
34Commits
1Contributors
34 commits · Last activity 2026-03-25 · 0% stars, 30d

Stars over time

2025-06-18 · 72026-07-07 · 8

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/eddelbuettel/zigg on 2026-08-16.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
EditorConfig
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
4direct
181indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.0.2Latest
    2025-02-07 · current release · diff ↗
  • 0.0.1
    2025-01-31
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-01-31
Total releases
2 / 1 yrs
License
GPL (>= 2) OSI
Download size
18 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("zigg")
Eddelbuettel, D. (2025). zigg: Lightweight Interfaces to the 'Ziggurat' Pseudo Random Number Generator (Version 0.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.zigg

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for zigg version 0.0.2 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy