Re: rand() function not working right

From: Date: Sun, 31 Aug 2003 07:13:18 +0000
Subject: Re: rand() function not working right
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-161284@lists.php.net to get a copy of this message
* Thus wrote john (jake@infctd.net): > youre not the only one .. i just installed 4.3.3 and $x = rand(1,173); > always returns 101 for $x > > i changed to mt_rand(1,173); and that always returns 142 ??? > > weirdness .. dont tell me this is happening to only me? it works find with 4.3.3RC1 on unix. I'm curious if this is an OS issue, what OS are you running php on? Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#161284) next »