diff --git a/lib/OSRIC/Util.pm b/lib/OSRIC/Util.pm index 633cd93..8a91095 100644 --- a/lib/OSRIC/Util.pm +++ b/lib/OSRIC/Util.pm @@ -12,7 +12,7 @@ sub d my $n = shift // 1; my $i = 0; - $i += int(rand($range)); + $i += (int(rand($range)) + 1) for(1..$n); return $i; }