MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / randNum

Function randNum

src/pkg/utils/utils.ts:4–6  ·  view source on GitHub ↗
(a: number, b: number)

Source from the content-addressed store, hash-verified

2import type { SystemConfigKey } from "../config/config";
3
4export function randNum(a: number, b: number) {
5 return Math.floor(Math.random() * (b - a + 1)) + a;
6}
7
8export function randomMessageFlag(): string {
9 // parseInt('a0000000', 36) = 783641640960;

Callers 6

blackListSelfCheckFunction · 0.90
gm_api.tsFile · 0.90
_GM_setValueMethod · 0.90
_GM_setValuesMethod · 0.90
randomMessageFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected