MCPcopy Index your code
hub / github.com/continuedev/continue / randomNumberBetween

Function randomNumberBetween

core/nextEdit/context/processNextEditData.ts:17–21  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

15} from "./prevEditLruCache";
16
17const randomNumberBetween = (min: number, max: number) => {
18 min = Math.ceil(min); // Ensure min is an integer
19 max = Math.floor(max); // Ensure max is an integer
20 return Math.floor(Math.random() * (max - min + 1)) + min;
21};
22
23interface ProcessNextEditDataParams {
24 filePath: string;

Callers 1

processNextEditDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected