You should call mt_srand((double) microtime() * 1000000) once, and only
once, in any given script.

WARNING [EMAIL PROTECTED] address is an endangered species -- Use
Wanna help me out?  Like Music?  Buy a CD:
Volunteer a little time:
----- Original Message -----
From: Nikola Veber <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php forum <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 6:57 PM
Subject: random numbers help

> Hi !
> I'm having troubles with the random numbers. When I create a number witm
> I always get the same number on my local server. I need this stuff to
ranomly display
> some text, and I'd like to have another value of the random number each
time the
> page is refreshed.
> Thanks
> Nikola

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to