MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / randInt

Function randInt

scripts/seed-events.mjs:61–63  ·  view source on GitHub ↗
(min, max, rng = eventRng)

Source from the content-addressed store, hash-verified

59}
60
61function randInt(min, max, rng = eventRng) {
62 return Math.floor(rng() * (max - min + 1)) + min;
63}
64
65function randFloat(min, max, rng = eventRng) {
66 return rng() * (max - min) + min;

Callers 2

seed-events.mjsFile · 0.85
scheduleSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected