0.2.0 • Published 5 months ago

@envisim/random v0.2.0

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
5 months ago

npm package

@envisim/random

A TypeScript library with a seedable high-entropy random number generator.

Implements the Gibson Research Corporations UHE PRNG algorithm.

Installation

npm install @envisim/random

Usage

import { Random } from "@envisim/random";

// Example usage with seed
const rand = new Random(12345);
rand.random(); // Generate a random float on the interval [0, 1)