mt_rand(): houston, we have a problem!
| From: | Faisal Nasim | Date: | Fri, 14 Apr 2000 15:23:01 +0000 |
| Subject: | mt_rand(): houston, we have a problem! | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17914@lists.php.net to get a copy of this message | ||
<?
mt_srand((double)microtime()*1000000);
while ( $cnt++ <= 10 )
print mt_rand ( 5 , 10 ) . "=" . rand ( 5 , 10 ) . "\n";
?>
Output:
149407=5
372847=8
192329=6
128069=9
325570=8
314831=7
244113=7
3787=10
127255=9
72128=9
340660=6
On Windows 2000.
I am sure it isn't supposed to behave that way.
Please fix it.
Thanks, and Enjoy!
Faisal.