MCPcopy
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). */
201export const randomInt = (num = 1): number => Math.round(Math.random() * num);

Callers 3

getNoteFunction · 0.90
utils.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected