getState
getState():
EngineState
Defined in: src/global/instance.ts:69
A JSON-serialisable snapshot of the global stream.
Returns
Section titled “Returns”Example
Section titled “Example”seed(1);const saved = getState();const first = random();setState(saved);random() === first; // true