You scratch my ticket, I'll scratch yours...
April 22, 2009 11:55 AM
Subscribe
How should I approach programming a prize draw?
I've been given the job of putting together an online prize draw scratchcard for a promotion on a website. The draw will run between two fixed dates. There is one grand prize and there are fifty runner-up prizes. The front-end is Flash; the back-end is PHP/MySQL.
I'm aware that I should do pretty much everything on the server; the Flash movie will be fed a particular scratchcard, collect the details of each player, reveal whether they have won, then send their details back to the server. The allocation of the cards will be done entirely on the server-side.
But how do I allocate the tickets? Is there a 'best practice' way of doing this sort of thing, given that I have no idea how many people will play (I'm guessing tens of thousands)?
And what simple precautions should I take to ensure that prizes are won fairly?
posted by le morte de bea arthur to computers & internet (17 comments total)
1 user marked this as a favorite
posted by burnmp3s at 12:07 PM on April 22