pure-rand
npmv8.4.2Pure 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
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: 6pure-rand vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| pure-randthis page | 0 | 1 | MIT | 2 months ago |
| fastest-levenshtein | 0 | 1 | MIT | 1 day ago |
| p-locate | 216.9M | 1 | MIT | 1 day ago |
| fast-glob | 135.1M | 8 | MIT | 1 day ago |
| fastq | 122.5M | 1 | ISC | 1 day ago |
| is-plain-obj | 112.9M | 1 | MIT | 1 day ago |
Dependencies
Declared by pure-rand v8.4.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (10)
Used by
Popular packages that depend on pure-rand.
Relationship graph
Dependencies (left) and dependents (right) of pure-rand.
Frequently installed together
Run multiple promise-returning & async functions with limited concurrency
This packages is a collection of utilities and helper functions
No description provided.
Captures and cleans stack traces
Parameterised tests for Jest
generator async control flow goodness
Convert Windows backslash paths to slash paths
No description provided.
No description provided.
No description provided.
A set of utility functions for expect and related packages
No description provided.
Release history
9 releases in the last two years, typically about 43 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.4.2latest | 2 months ago | 63 KB | MIT |
| 8.4.1 | 2 months ago | 63 KB | MIT |
| 8.4.0 | 5 months ago | 61 KB | MIT |
| 8.3.0 | 5 months ago | 70 KB | MIT |
| 8.2.0 | 5 months ago | 52 KB | MIT |
| 8.1.0 | 5 months ago | 52 KB | MIT |
| 8.0.0 | 6 months ago | 49 KB | MIT |
| 7.0.1 | 1 year ago | 83 KB | MIT |
| 7.0.0 | 1 year ago | 83 KB | MIT |
| 6.1.0 | 2 years ago | 82 KB | MIT |
| 6.0.4 | 2 years ago | 75 KB | MIT |
| 6.0.3 | 3 years ago | 75 KB | MIT |
| 6.0.2 | 3 years ago | 69 KB | MIT |
| 6.0.1 | 3 years ago | 69 KB | MIT |
| 6.0.0 | 3 years ago | 59 KB | MIT |
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
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.