# prng-parkmiller-js

> Park-Miller-Carta pseudo-random number generator library

Latest version **0.1.1** (published 2012-05-08) · 0 weekly downloads

## Install

```sh
npm install prng-parkmiller-js
pnpm add prng-parkmiller-js
yarn add prng-parkmiller-js
bun add prng-parkmiller-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2012-05-08 |
| First published | 2012-05-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Alexander Veenendaal |
| Maintainers | odogono |
| Keywords | random, number, generator, park-miller, prng |

## Links

- npm: https://www.npmjs.com/package/prng-parkmiller-js
- Repository: https://github.com:odogono/prng-parkmiller-js
- Homepage: https://github.com/odogono/prng-parkmiller-js/
- Issues: https://github.com/odogono/prng-parkmiller-js/issues
- npm.io page: https://npm.io/package/prng-parkmiller-js

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2012-05-08
- 0.1.0 — 2012-05-08

## README

Implementation of the Park Miller (1988) "minimal standard" linear congruential pseudo-random number generator.

For a full explanation visit: http://www.firstpr.com.au/dsp/rand31/

The generator uses a modulus constant (m) of 2^31 - 1 which is a Mersenne Prime number and a full-period-multiplier of 16807.

Output is a 31 bit unsigned integer. The range of values output is 1 to 2,147,483,646 (2^31-1) and the seed must be in this range too.

Ported from actionscript original code by Michael Baczynski at http://lab.polygonal.de/?p=162

---
_Source: https://npm.io/package/prng-parkmiller-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
