From 05df6907c5322e4b8374fb60a17cccf9d31b7fcf Mon Sep 17 00:00:00 2001 From: Alex Kerr Date: Tue, 27 Jan 2015 11:27:19 +0000 Subject: [PATCH] OSRIC::Util::d actually does what's intended --- lib/OSRIC/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }