diff --git a/CHANGELOG.md b/CHANGELOG.md index c247400..210f126 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - randomDate - randomMaxDate - checkEnvVars is dropped + - randomPercentage is dropped ## 0.51.1 diff --git a/src/random/randomInt.ts b/src/random/randomInt.ts index 706b958..80d96e4 100644 --- a/src/random/randomInt.ts +++ b/src/random/randomInt.ts @@ -12,7 +12,7 @@ export const randomInt = ({ export const randomPositiveInt = ({ min = 1, - max = 100, + max, }: { min?: number; max?: number; @@ -23,7 +23,7 @@ export const randomPositiveInt = ({ }); export const randomNegativeInt = ({ - min = -100, + min, max = -1, }: { min?: number;