@std/random standard library MIT engine >= 0.1.0

Deterministic seeded streams and OS entropy.

import { Rng } from "@std/random";

overview

Reach for @std/random in two shapes: Rng.seeded(n) for deterministic streams that replay bit-identically (simulations, tests), CryptoRng for OS entropy when unpredictability matters.

capabilities

  • Seeded Rng streams
  • OS-backed CryptoRng
  • Ints, bools, ranges

No API data yet