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

Method nextFloat

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

* @zh 生成浮点数 [min, max) * @en Generate float [min, max)

(min: number, max: number)

Source from the content-addressed store, hash-verified

87 * @en Generate float [min, max)
88 */
89 nextFloat(min: number, max: number): number {
90 return this.next() * (max - min) + min;
91 }
92
93 /**
94 * @zh 生成布尔值

Callers

nothing calls this directly

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected