Instantiate a RandomEngine.
new RandomEngine({ seed: string; size: number })
const engine = new RandomEngine({
seed: "",
size:
});
Progress engine and get random values.
random(direction?: number): number[]
engine.position =
engine.random();
engine.position =
Move engine to a specific point.
move(position: number): number[]
engine.position =
engine.move();
engine.position =
Generate Perlin noise.
perlin(x?: number; y?: number; z?: number;): number[]
engine.perlin(, , )
Create time-based seeds.
RandomEngine.timecodeGenerator(settings: Settings): () => Timecode
Settings = { length: number; seed: string; seconds: number; }
Timecode = { code: string; expiry: number; position: number; }
const generator = RandomEngine.timecodeGenerator({
length: ,
seconds: ,
seed: "",
});
generator() =