you could always curl http://www.random.org/ and extract the results
from their random number generator.

all kidding aside, what are you feeding to srand()?

what does 3x echo rand() give you if you dont seed it?

whats does it give you after you seed it?

just trying to name off a few things to get yer mind kicking. good
luck and report back


On Aug 3, 7:10 pm, Miles J <mileswjohn...@gmail.com> wrote:
> Also ive tried setting srand() manually, and my /dev/random and /dev/
> urandom folders exist.
>
> On Aug 3, 3:25 pm, Miles J <mileswjohn...@gmail.com> wrote:
>
> > I found this very weird bug today, and I am extremely stumped on the
> > problem.
>
> > I was working on a static ad system. The ads are listed in an array
> > and I would shuffle() the array and then output the first index as the
> > current ad for that request. It works fine locally but online it does
> > not. So then I tried using rand(), same problem.
>
> > I also noticed on the homepagehttp://www.gamesync.com/theAction,
> > RPG, etc tabs are always on the same tab, but should also be
> > randomizing with rand(), yet are not. But they work locally.
>
> > I really have no idea why the randomizing functions work locally but
> > not online. Is there some sort of setting or hidden cache function I
> > don't know about, can anyone enlighten me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to