note 53967 rejected from function.mt-srand by mazzanet
| From: | mazzanet@php.net | Date: | Sun, 19 Jun 2005 09:00:21 +0000 |
| Subject: | note 53967 rejected from function.mt-srand by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90645@lists.php.net to get a copy of this message | ||
Note Submitter: wisp at exite-art dot com
----
having trouble using mt_rand..
tried the following:
for($n = 0; $n < 1000000; $n++) {
$i = mt_rand(1, 10);
}
and got the following reults:
1s: 199560
2s: 200233
3s: 200135
4s: 200095
5s: 199188
6s: 160
7s: 139
8s: 186
9s: 155
10's: 149
Tried this with many different seeds as well and got similar results.. now could this be caused by
my OS? (WinXP, SP2)