note 13641 added to function.rand.php

From: Date: Tue, 26 Jun 2001 10:02:28 +0000
Subject: note 13641 added to function.rand.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14655@lists.php.net to get a copy of this message
Use mt_rand() instead of rand() I just had a problem with php 3.0.18 on a sgi-irix-65-system The following code worked but it generated a errormessage! On other systems I didn't have the same problem. With mt_rand() it works :-)) srand((double)microtime()*1000000); $code = rand (100000,999999); http://www.php.net/manual/de/function.rand.php

« previous php.notes (#14655) next »