note 16081 rejected from function.rand by jimw

From: Date: Tue, 16 Oct 2001 02:15:29 +0000
Subject: note 16081 rejected from function.rand by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-18958@lists.php.net to get a copy of this message
I got a very very basic question about rand(). here is my code: <? $num = rand(2,4); echo $num; ?> but the php file always returns 4. i don't know why. ???? I tried the mt_rand(), it didn't work either. here is the url: http://128.174.50.18/wwwart/rand.php would you like to help me out? Is there anything related to configulation?.. thanks

« previous php.notes (#18958) next »