import type { RandomSource } from '@flighthq/types/contract'; export type { RandomSource }; /** Create a fast, deterministic pseudo-random generator seeded by an integer. * * Uses the mulberry32 algorithm: a single 32-bit state, good statistical * quality for gameplay/VFX use, and identical output across platforms for a * given seed. Two generators created with the same seed produce the same * sequence, so seeding two consumers identically makes them run in lockstep. * * This is the SDK's reusable seeded random — used wherever a render or * simulation must be reproducible (particle emitters, the landing backgrounds, * visual-regression capture) rather than each call site reimplementing it. * * ```ts * const random = createRandomSource(0x1234); * const value = random(); // a number in [0, 1) * ``` */ export declare function createRandomSource(seed: number): RandomSource; //# sourceMappingURL=random.d.ts.map