@ende/random/get-random-values-seeded

ende add jsr:@ende/random

Version 2026.10.15 on JSR.

Exports

  • getRandomValuesSeeded — Creates a pseudo-random value generator that populates typed arrays, based on the given seed. The algorithm used for generation is PCG32.
  • IntegerTypedArray — An integer typed array
  • RandomValueGenerator — A pseudo-random number generator implementing the same contract as `crypto.getRandomValues`, i.e. taking a typed array and mutating it by filling it with random bytes, returning the mutated typed array instance.