# uint-rng

> A tiny isomorphic Random Number Generator for generating 1/8/16/32/64-bits unsigned integers.

Latest version **1.2.1** (published 2025-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install uint-rng
pnpm add uint-rng
yarn add uint-rng
bun add uint-rng
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2025-01-13 |
| First published | 2022-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | fabiospampinato |
| Keywords | rng, random, number, generator, uint, integer |

## Links

- npm: https://www.npmjs.com/package/uint-rng
- Repository: https://github.com/fabiospampinato/uint-rng
- Homepage: https://github.com/fabiospampinato/uint-rng#readme
- Issues: https://github.com/fabiospampinato/uint-rng/issues
- npm.io page: https://npm.io/package/uint-rng

## Dependencies (1)

- [tiny-webcrypto](https://npm.io/package/tiny-webcrypto.md) ^1.0.2

## Recent versions

- 1.2.1 (latest) — 2025-01-13
- 1.2.0 — 2023-08-09
- 1.1.0 — 2023-08-04
- 1.0.0 — 2022-05-19

## README

# Uint RNG

A tiny isomorphic Random Number Generator for generating 1/8/16/32/64-bits unsigned integers.

## Install

```sh
npm install uint-rng
```

## Usage

```ts
import RNG from 'uint-rng';

// Let's generate some random numbers

RNG.get1 (); // => 0
RNG.get8 (); // => 72
RNG.get16 (); // => 23291
RNG.get32 (); // => 1129029
RNG.get64 (); // => 16020485623009486818n
```

## License

MIT © Fabio Spampinato

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