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

Function randomInt

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

Source from the content-addressed store, hash-verified

147}
148
149export function randomInt(min: number, max: number): number {
150 return Math.floor(min + Math.random() * (max - min + 1));
151}
152
153// Easing functions
154

Callers 5

generateTerrainFunction · 0.90
generateDungeonFunction · 0.90
tryMoveFunction · 0.90
spawnEnemyFunction · 0.90
tryMovePlayerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected