</>PackageGraphPackageGraph

pure-rand

npmv8.4.2

Pure random number generator written in TypeScript

Safe to adopt

Yes — pure-rand scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 62 days ago. 9 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 62 days ago. 9 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 63 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding pure-rand to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

63 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the pure-rand README.

javascriptFull README ↗
import { uniformInt } from 'pure-rand/distribution/uniformInt';
import { xoroshiro128plus } from 'pure-rand/generator/xoroshiro128plus';

const seed = 42;
const rng = xoroshiro128plus(seed);
const firstDiceValue = uniformInt(rng, 1, 6); // value in {1..6}, here: 2
const secondDiceValue = uniformInt(rng, 1, 6); // value in {1..6}, here: 4
const thirdDiceValue = uniformInt(rng, 1, 6); // value in {1..6}, here: 6

pure-rand vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
pure-randthis page01MIT2 months ago
fastest-levenshtein01MIT1 day ago
p-locate216.9M1MIT1 day ago
fast-glob135.1M8MIT1 day ago
fastq122.5M1ISC1 day ago
is-plain-obj112.9M1MIT1 day ago

Dependencies

Declared by pure-rand v8.4.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (10)

@fast-check/packaged ^0.7.0@vitest/coverage-v8 4.1.9fast-check ^4.8.0oxfmt ^0.56.0pkg-pr-new ^0.0.75publint 0.3.21rolldown 1.1.3rolldown-plugin-dts ^0.26.0typescript ^6.0.3vitest ^4.1.9

Used by

Popular packages that depend on pure-rand.

Relationship graph

Dependencies (left) and dependents (right) of pure-rand.

jest-circuspure-rand
pure-rand dependencies dependents

Frequently installed together

Release history

9 releases in the last two years, typically about 43 days apart.

Recent versions of pure-rand
VersionPublishedSizeLicense
8.4.2latest2 months ago63 KBMIT
8.4.12 months ago63 KBMIT
8.4.05 months ago61 KBMIT
8.3.05 months ago70 KBMIT
8.2.05 months ago52 KBMIT
8.1.05 months ago52 KBMIT
8.0.06 months ago49 KBMIT
7.0.11 year ago83 KBMIT
7.0.01 year ago83 KBMIT
6.1.02 years ago82 KBMIT
6.0.42 years ago75 KBMIT
6.0.33 years ago75 KBMIT
6.0.23 years ago69 KBMIT
6.0.13 years ago69 KBMIT
6.0.03 years ago59 KBMIT

Overview

pure-rand is an npm package that pure random number generator written in TypeScript. It has 1 known dependents in the graph. The latest version is 8.4.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need pure random number generator written in TypeScript and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use pure-rand?

Yes — pure-rand scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 62 days ago. 9 releases in the last 2 years.

How do I install pure-rand?

Run `npm install pure-rand` to add pure-rand to your npm project.

What license is pure-rand released under?

pure-rand is distributed under the MIT license.

How popular is pure-rand?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on pure-rand.

Is pure-rand still maintained?

The most recent release of pure-rand (v8.4.2) was published 2 months ago.

Does pure-rand run install scripts?

No. pure-rand does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.