note 9544 added to rand

From: Date: Fri, 10 Nov 2000 08:10:47 +0000
Subject: note 9544 added to rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-7566@lists.php.net to get a copy of this message
rand(0, 0) doesn't work crying "Invalid range" but the reasoning for this is unknown to me. This should DWIM as far as range is inclusive on both ends. http://www.php.net/manual/function.rand.php

« previous php.notes (#7566) next »