diff --git a/lib/util.js b/lib/util.js index a59770271..01b6b62e3 100644 --- a/lib/util.js +++ b/lib/util.js @@ -448,10 +448,6 @@ function chooseRandom (firstNumber, secondNumber) { let bigNumber = Math.max(firstNumber, secondNumber); let smallNumber = Math.min(firstNumber, secondNumber); - if (bigNumber === smallNumber) { - return Math.random() * bigNumber; - } - return (Math.random() * (bigNumber - smallNumber)) + smallNumber; }