Re: [PHP] srand thought

2002-05-02 Thread Mike Eheler
Yeah. If I understand correctly, if you do, like: Then, I believe, the theory is that you will get the same "random" number twice. Mike Miguel Cruz wrote: > On Thu, 2 May 2002, Gerard Samuel wrote: > >>Quick question. Im using srand to seed array_rand in a script. >>I read that srand shoul

Re: [PHP] srand thought

2002-05-02 Thread Miguel Cruz
On Thu, 2 May 2002, Gerard Samuel wrote: > Quick question. Im using srand to seed array_rand in a script. > I read that srand should only be called once per script under the srand > manual page. > Im using ADODB, and that also uses srand. Now should that warning be a > literal warning or shoul

[PHP] srand thought

2002-05-02 Thread Gerard Samuel
Quick question. Im using srand to seed array_rand in a script. I read that srand should only be called once per script under the srand manual page. Im using ADODB, and that also uses srand. Now should that warning be a literal warning or should that be 'use srand once per page'?? Thanks --