php-general | 2000071
Date: 07/14/00
- Next message: Cosenza, Mario: "RE: [PHP] OK, so I'm an idiot... ($REMOTE_USER)"
- Previous message: idban secandri: "Re: [PHP] many mysql_query() ???"
- Next in thread: Ed Vul: "Re: [PHP] PHP random n. problem?"
- Reply: Ed Vul: "Re: [PHP] PHP random n. problem?"
- Reply: Andrew: "Re: [PHP] PHP random n. problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Are there any known problems with generating random numbers in PHP?
I'm using php 4.0.1pl2 on RH 6.2.
I installed the banner script phpAds - which works fine, with one
exception: random banner selection seems not to be very "random".
Instead of each banner having the same probability, and thus - periodity
of display, some banners get displayed very often, whereas others don't
get displayed at all!
All banners belong to the same group - so they really SHOULD get displayed
equally often! I suspect some major random number generator bug - if I
change the banners database (change order, delete and put back again
etc.) - different banners "dominate' while some other banners get
'discriminated'.
...or have done something wrong with the phpAds itself?
Any clues?
Jacek Juda
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Cosenza, Mario: "RE: [PHP] OK, so I'm an idiot... ($REMOTE_USER)"
- Previous message: idban secandri: "Re: [PHP] many mysql_query() ???"
- Next in thread: Ed Vul: "Re: [PHP] PHP random n. problem?"
- Reply: Ed Vul: "Re: [PHP] PHP random n. problem?"
- Reply: Andrew: "Re: [PHP] PHP random n. problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

