note 29599 added to function.rand
| From: | R/C at rack1 dot php dot net | Date: | Tue, 18 Feb 2003 17:40:33 +0000 |
| Subject: | note 29599 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44165@lists.php.net to get a copy of this message | ||
Well, of course Windows is limited to ~32Kwhen generating random numbers... it's called an s16
value, boys and girls.
Sixteen bits: 2^15 = ~32K, and the last bit is a signed bit.
The easy solution? Write a lingual extension to PHP (that's why they provide source code,
guys), or install Linux.
--
http://www.php.net/manual/en/function.rand.php
http://master.php.net/manage/user-notes.php?action=edit+29599
http://master.php.net/manage/user-notes.php?action=delete+29599
http://master.php.net/manage/user-notes.php?action=reject+29599