MCPcopy
hub / github.com/pyrochlore/obsidian-tracker / randomIntFromInterval

Function randomIntFromInterval

examples/example_generator.ts:17–19  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

15}
16
17function randomIntFromInterval(min: number, max: number) {
18 return Math.floor(random() * (max - min + 1) + min);
19}
20
21function randomFloatFromInterval(min: number, max: number) {
22 return random() * (max - min + 1) + min;

Callers 1

Calls 1

randomFunction · 0.85

Tested by

no test coverage detected