"Tim Haynes" <[EMAIL PROTECTED]> wrote in message
news:20021023162115.16675.qmail@;pb1.pair.com...
> Here is a puzzle, infact it is a game that I need to do in PHP, here is
the
> spec
>
> 3 prizes to be won every day over a month by clicking on 24 seperate
> windows....and thats it
>
> How could I go about deciding whether a user that clicked on one of the
> windows is a winner or not, obviously I wouln't want the prizes to go in
the
> first hour of the day, so would need to spread it out abit.

Obviously you don't know how many contestants you will have, so you can't
base it on that.

What about varying the probability of a win by the time since the last
page-view?
You could adjust this by hourly activity (to decrease the advantage for
people
hitting it at 2am) and by (time remaining / prizes remaining) to ensure
coming
out near your number-of-prizes target.

Does it *have* to be three prizes per day, or is that *on average*?  I
prefer
the latter; it makes things more tractable.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to