From ad5d2ffdee4288d2a341483643488d731bd2381c Mon Sep 17 00:00:00 2001 From: Orlando Date: Thu, 11 Jul 2024 18:52:10 +0100 Subject: [PATCH] forgot about a dropped function in readme --- CHANGELOG.md | 1 + src/random/randomInt.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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;