Skip to content

Interface: SeededRandom() ​

Defined in: lockstep.ts:170

A generator made by seededRandom: call it for the next number in [0, 1).

ts
SeededRandom(): number;

Defined in: lockstep.ts:171

A generator made by seededRandom: call it for the next number in [0, 1).

Returns ​

number

Properties ​

PropertyModifierTypeDescriptionDefined in
statereadonlynumberWhere the generator stands: one whole number. seededRandom(state) makes a generator that carries on from here, which is how a simulation's save and load keep its randomness.lockstep.ts:177

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.