Re: [PHP] Re: array_rand() not random

2004-06-15 Thread Kim Steinhaug
Well, I must admit Im gotten abit to familiar with the use of MySQL lately, though it might be abit overkill - but what the heck. The database is there to be used and we shouldnt worry to much. For those really worrying there are several file based "sql" alternatives out there. Ok, I would use an

Re: [PHP] Re: array_rand() not random

2004-06-15 Thread Nori Heikkinen
on Sun, 13 Jun 2004 01:15:20AM +0200, Kim Steinhaug insinuated: > Hmm... Ive been having same problems with mysql and picking random > numbers, I ended up having to program a rather more sofisticated > system to eliminate the stats you were referring to. > > You could, not that it will be any bett

[PHP] Re: array_rand() not random

2004-06-12 Thread Kim Steinhaug
Hmm... Ive been having same problems with mysql and picking random numbers, I ended up having to program a rather more sofisticated system to eliminate the stats you were referring to. You could, not that it will be any better, try another approach : Something like : $count = count($your_data_ar