|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-22 15:55 UTC] andy@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
// Sample code for problem srand(time()); for($counter = 0; $counter<= 20 ; $counter++){ print(rand(0,5 ); print("<br>"); } for some reason this always returns the same number as the first number returned, until the file is modified. The first number, after that, the numbers seem to be random. I'm using the latest apache & php on a win2k SP2 laptop