You are here: Re: Choosing a random entry in a table by "weight" « PHP Programming Language « IT news, forums, messages
Re: Choosing a random entry in a table by "weight"

Posted by Floortje on 05/28/07 13:39

>> Nice .. real nice but wrong :-(
>
> I don't know what would make it particularily "wrong", it does basicly
> what it should, but the distribution of percentages is different. How
> would I know what is "wrong" and what "right", so I just say it's
> "different". The original question does not define exactly what is "more
> often than the others".

The op asked for 'weighted'. I really like your solution but it is not
weighted. http://en.wikipedia.org/wiki/Weight_function



--
Arjen
http://www.hondenpage.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация