Skip to content

Commit

Permalink
fix: randomInt max.
Browse files Browse the repository at this point in the history
  • Loading branch information
chizuki committed Jul 22, 2022
1 parent 438b55d commit f29427d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f29427d

Please sign in to comment.