Skip to content

Instantly share code, notes, and snippets.

class Randomizer {
constructor(seed = "default") {
this.seed = seed;
this.seedHash = this.#cyrb128(seed);
this.rand = this.#sfc32(
this.seedHash[0],
this.seedHash[1],
this.seedHash[2],
this.seedHash[3]
);