note 42795 added to function.mt-rand
| From: | spitfire1288 at insight dot rr dot com | Date: | Sat, 29 May 2004 20:08:54 +0000 |
| Subject: | note 42795 added to function.mt-rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70283@lists.php.net to get a copy of this message | ||
I have started making a script to randomly select a temperature for the day (high and low)
$high = mt_rand(85, 100);
$low = mt_rand(75, 85);
but I am not sure how to make the numbers change only once a day. Any feedback on how I would do
this?
----
Manual Page -- http://www.php.net/manual/en/function.mt-rand.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42795
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42795&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42795&report=yes
Search -- http://master.php.net/manage/user-notes.php