@thi.ng/random
Version:
Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation
18 lines • 582 B
TypeScript
import type { IBuffered, ICopy } from "@thi.ng/api";
import type { ISeedable } from "./api.js";
import { ARandom } from "./arandom.js";
/**
* @remarks
* References:
*
* - https://github.com/thi-ng/ct-head/blob/master/random.h
* - https://gist.github.com/voidqk/d112165a26b45244a65298933c0349a4
*/
export declare class Smush32 extends ARandom implements IBuffered<Uint32Array>, ICopy<Smush32>, ISeedable<number> {
buffer: Uint32Array;
constructor(seed?: number);
copy(): Smush32;
seed(s: number): this;
int(): number;
}
//# sourceMappingURL=smush32.d.ts.map