Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
149
export
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
generateTerrain
Function · 0.90
generateDungeon
Function · 0.90
tryMove
Function · 0.90
spawnEnemy
Function · 0.90
tryMovePlayer
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected