diff --git a/webapp/src/utils.ts b/webapp/src/utils.ts index 0e01f79..d6c704d 100644 --- a/webapp/src/utils.ts +++ b/webapp/src/utils.ts @@ -1,4 +1,5 @@ -export function getRandomInteger(min, max) { + +export function getRandomInteger(min: number, max: number): number { min = Math.ceil(min); // Ensure min is an integer max = Math.floor(max); // Ensure max is an integer return Math.floor(Math.random() * (max - min + 1)) + min;