RandomValueGenerator

import { RandomValueGenerator } from "jsr:@ende/random";

type alias ยท experimental

type RandomValueGenerator = <T extends IntegerTypedArray>(array: T) => T

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.

Source