From 82df97ff06a33c92e8cbb0130e34004b7df6ef3d Mon Sep 17 00:00:00 2001 From: Thomas Hull Date: Mon, 21 Oct 2019 15:26:13 +0100 Subject: [PATCH] fix(#1478): random number generator to return random numbers --- .../com/scottlogic/deg/common/profile/NumericGranularity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/scottlogic/deg/common/profile/NumericGranularity.java b/common/src/main/java/com/scottlogic/deg/common/profile/NumericGranularity.java index f01d8ff6a..0046fc6f8 100644 --- a/common/src/main/java/com/scottlogic/deg/common/profile/NumericGranularity.java +++ b/common/src/main/java/com/scottlogic/deg/common/profile/NumericGranularity.java @@ -76,7 +76,7 @@ public BigDecimal getNext(BigDecimal value) { @Override public BigDecimal getRandom(BigDecimal min, BigDecimal max, RandomNumberGenerator randomNumberGenerator) { - BigDecimal value = randomNumberGenerator.nextBigDecimal(max, max); + BigDecimal value = randomNumberGenerator.nextBigDecimal(min, max); return trimToGranularity(value); }