I am creating a raffle and at the moment have a database with username and the amount of tickets assigned to them. The only fair way I can think of selecting a winner fairly i.e. the more tickets you have, the higher the odds of winning are; is by creating a separate table with users names listed multiplied by the amount of tickets they have and randomly selecting one. This would create an enormous database. What is the best way to go about selecting the winner? Preferably via PHP.
EDIT* Users gain ticket i.e. +1 to 'tickets'. The tickets do not actually have anything assigned to them to make them different from the rest.
Username Tickets Tinman 55
Thank you in advance.