Skip to content

Function: seededRandom() ​

ts
function seededRandom(seed): SeededRandom;

Defined in: lockstep.ts:185

A small deterministic random number generator (mulberry32). Math.random differs on every machine; this gives every client the same sequence for the same seed. Returns numbers in [0, 1).

Parameters ​

ParameterType
seednumber

Returns ​

SeededRandom

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