MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / randomFloat

Function randomFloat

src/math/index.ts:145–147  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

143}
144
145export function randomFloat(min: number, max: number): number {
146 return min + Math.random() * (max - min);
147}
148
149export function randomInt(min: number, max: number): number {
150 return Math.floor(min + Math.random() * (max - min + 1));

Callers 4

createKartFunction · 0.90
main.tsFile · 0.90
spawnEnemyFunction · 0.90
spawnExplosionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected