Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/scribbletune/scribbletune
/ randomInt
Function
randomInt
src/utils.ts:201–201 ·
view source on GitHub ↗
(num = 1)
Source
from the content-addressed store, hash-verified
199
200
/** Return a random integer from 0 to `num` (inclusive). */
201
export
const
randomInt = (num = 1): number => Math.round(Math.random() * num);
Callers
3
getNote
Function · 0.90
recursivelyApplyPatternToNotes
Function · 0.90
utils.spec.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected