diff --git a/packages/core/src/utils.ts b/packages/core/src/utils.ts index 13315417..03ae532c 100644 --- a/packages/core/src/utils.ts +++ b/packages/core/src/utils.ts @@ -39,7 +39,7 @@ export function randomInt(min: number, max?: number) { max = min min = 0 } - return Math.floor(Math.random() * (max - min + 1)) + min + return Math.floor(Math.random() * (max - min)) + min } export function randomDate(start: DateLike): Date