PRNG: A Pseudo-Random Number Generator

Provides functions for generating pseudo-random numbers that follow a uniform distribution [0,1]. Randomness tests were conducted using the National Institute of Standards and Technology test suite<>, along with additional tests. The sequence generated depends on the initial values and parameters. The package includes a linear congruence map as the decision map and three chaotic maps to generate the pseudo-random sequence, which follow a uniform distribution. Other distributions can be generated from the uniform distribution using the Inversion Principle Method and BOX-Muller transformation. Small perturbations in seed values result in entirely different sequences of numbers due to the sensitive nature of the maps being used. The chaotic nature of the maps helps achieve randomness in the generator. Additionally, the generator is capable of producing random bits.

Version: 0.0.2
Suggests: testthat (≥ 3.0.0), nortest
Published: 2024-05-27
DOI: 10.32614/CRAN.package.PRNG
Author: Sajad Ahmad Mir ORCID iD [aut, cre], Dr. Puneet Sharma ORCID iD [aut]
Maintainer: Sajad Ahmad Mir <mir.1 at>
License: MIT + file LICENSE
NeedsCompilation: no
CRAN checks: PRNG results


Reference manual: PRNG.pdf


Package source: PRNG_0.0.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): PRNG_0.0.2.tgz, r-oldrel (arm64): PRNG_0.0.2.tgz, r-release (x86_64): PRNG_0.0.2.tgz, r-oldrel (x86_64): PRNG_0.0.2.tgz
Old sources: PRNG archive


Please use the canonical form to link to this page.