MCPcopy Create free account
hub / github.com/esengine/esengine / reset

Method reset

packages/procgen/src/random/SeededRandom.ts:52–59  ·  view source on GitHub ↗

* @zh 重置到初始状态 * @en Reset to initial state

()

Source from the content-addressed store, hash-verified

50 * @en Reset to initial state
51 */
52 reset(): void {
53 this._s0 = this._initialS0;
54 this._s1 = this._initialS1;
55
56 for (let i = 0; i < 10; i++) {
57 this.next();
58 }
59 }
60
61 /**
62 * @zh 生成下一个随机数 [0, 1)

Callers

nothing calls this directly

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected