Re: note 11969 added to function.rand.php

From: Date: Thu, 15 Mar 2001 21:25:22 +0000
Subject: Re: note 11969 added to function.rand.php
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-12446@lists.php.net to get a copy of this message
benoit_vachon@hotmail.com writes: > Hi, > > I use the function rand(), but when I refresh the page or I load it, > the same numbers always appear. > > http://www.php.net/manual/en/function.rand.php Did you remember to seed the random number generator with srand()? -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Adcore Finland| |http://www.coastnet.com/~torben http://www.adcore.com| |Ph: 1.604.709.0506 torben@adcore.com| +----------------------------------------------------------------+

« previous php.notes (#12446) next »