Tuesday, August 4, 2009

Re: shuffle(), rand(), etc always returning same number

On Tue, Aug 4, 2009 at 7:49 PM, Miles J<mileswjohnson@gmail.com> wrote:
>
> Actually after refreshing and clearing cache a bunch, mt_rand seems to
> be working sometimes. Good enough for now.

Are you sure the problem wasn't always with the cache? Have you tried
writing a simple php script that echoes the result of rand(), srand(),
and mt_rand() and refreshing the page a bunch of times?

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: