Re: Why rand() Doesn't Work?
| From: | Zak Greant | Date: | Sat, 16 Sep 2000 18:07:40 +0000 |
| Subject: | Re: Why rand() Doesn't Work? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2694@lists.php.net to get a copy of this message | ||
Use the srand function to 'seed' rand.
- Zak
----- Original Message -----
From: "Wingo Chan" <ebizone@hknet.com>
To: <php-windows@lists.php.net>
Sent: Saturday, September 16, 2000 12:17 AM
Subject: [PHP-WIN] Why rand() Doesn't Work?
I'm a php newbie. I tried every means to make the following work under
win98:
$disp_num = rand(0,13);
It just returned a 0 everytime I ran it. Any hints where I went wrong will
be highly appreciated.
Wingo Chan