MCPcopy Index your code
hub / github.com/Effect-TS/effect / getState

Method getState

packages/effect/src/Utils.ts:594–596  ·  view source on GitHub ↗

* Returns a copy of the internal state of this random number generator as a * JavaScript Array. * * @category getters * @since 2.0.0

()

Source from the content-addressed store, hash-verified

592 * @since 2.0.0
593 */
594 getState(): PCGRandomState {
595 return [this._state[0]!, this._state[1]!, this._state[2]!, this._state[3]!]
596 }
597
598 /**
599 * Restore state previously retrieved using `getState()`.

Callers 4

randomIntegerFunction · 0.95
randomIntegerBetweenFunction · 0.95
randomNumberFunction · 0.95
tRandom.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected