From 6a7ed0829546a6d5b4b35ef7eb389f859eec1764 Mon Sep 17 00:00:00 2001 From: Phil Burton Date: Wed, 16 Oct 2019 12:20:14 +0000 Subject: Amend max random key to be the max of the poop list --- src/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app.php') diff --git a/src/app.php b/src/app.php index b80083d..51a5e13 100644 --- a/src/app.php +++ b/src/app.php @@ -135,4 +135,4 @@ $poos = [ "Unfurling a poopdedoop", ]; -echo $poos[rand(0, count($poos))] . PHP_EOL; +echo $poos[rand(0, count($poos) - 1)] . PHP_EOL; -- cgit v1.2.3