|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-22 21:17 UTC] cjbj at hotmail dot com
[2004-02-22 22:27 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 04:00:01 2025 UTC |
Description: ------------ The rand() function under Windows XP Pro and possibly other Windows OSs generates numbers in a strict even-odd-even-odd pattern. The pattern doesn't occur on *nix OSs Reproduce code: --------------- <?php for (i = 0; i < 100; i++) echo rand()."<br />\n"; ?> Expected result: ---------------- expected numbers with no noticable pattern Actual result: -------------- numbers were in an even-odd-even-odd pattern