note 16081 added to function.rand
| From: | xizhang at uiuc dot edu | Date: | Tue, 16 Oct 2001 02:10:04 +0000 |
| Subject: | note 16081 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18957@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
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+16081
http://master.php.net/manage/user-notes.php?action=delete+16081
http://master.php.net/manage/user-notes.php?action=reject+16081