rand() function not working right

From: Date: Wed, 28 May 2003 18:29:45 +0000
Subject: rand() function not working right
Groups: php.general 
Request: Send a blank email to php-general+get-149305@lists.php.net to get a copy of this message
I'm using the latest php and the rand() function isn't working properly when giving it any min and max arguments. It does work without anything between the () but if I put a min and max, then only the min value always gets chosen. Is that a bug? Is that new? I'm not using an old php version, and it makes no difference to seed or not. I've switched to mt_rand() and it seems to work fine with min/max so far.. -- Didier Godefroy mailto:dg@ulysium.net

« previous php.general (#149305) next »