Posted by Oli Filth on 10/03/05 01:03
Iain said the following on 02/10/2005 20:06:
> I have been using rand() and mt_rand() to give a bit of dynamic content to a
> site...basically selecting one of a number of pictures at random. Each
> refresh then gives a slightly differnt page as in...
>
> $picture = $images[mt_rand(0,2)];
> What I find is that on a Windows dev platform both rand() and mt_rand()
> *always* give the max value - 2 in this case - and on a Linux platform seem
> to have a 'preference' for the max value. Any ideas why? Neither seem must
> of a random function especially on Windows!
>
What version of PHP are you using?
--
Oli
[Back to original message]
|