import type { Prng } from "./_types.js"; export type { Prng } from "./_types.js"; /** * Creates a pseudo-random number generator that generates random numbers in * the range `[0, 1)`, based on the given seed, with 32 bits of entropy. * The algorithm used for generation is {@link https://www.pcg-random.org/download.html | PCG32}. * * @experimental **UNSTABLE**: New API, yet to be vetted. * * @param seed The seed used to initialize the random number generator's state. * @returns A pseudo-random number generator function, which will generate * different random numbers on each call. * * @example Usage * ```ts * import { randomSeeded } from "@std/random"; * import { assertEquals } from "@std/assert"; * * const prng = randomSeeded(1n); * * assertEquals(prng(), 0.20176767697557807); * assertEquals(prng(), 0.4911644416861236); * assertEquals(prng(), 0.7924694607499987); * ``` */ export declare function randomSeeded(seed: bigint): Prng; //# sourceMappingURL=seeded.d.ts.map