rand(0,1) does seem to get more often 1

From: Date: Tue, 07 May 2002 13:47:49 +0000
Subject: rand(0,1) does seem to get more often 1
Groups: php.general 
Request: Send a blank email to php-general+get-96420@lists.php.net to get a copy of this message
Hi there, I am wondering if it is possible that this function tends to be more often 1. I do get 8 of 10 times 1. srand((double)microtime()*1000000); if (rand(0,1) == 1){ code... it looks ok to me. Thanx for any help, Andy

« previous php.general (#96420) next »