🤣🤣 I'd have probably felt the sweat again if George took another 3! 😅
But in all seriousness, if anyone is actually curious to how these work, this is genuinely what could happen as I wanted it to feel like you could all ask for as many as you like - the alternative was put up just one raffle and you have the chance to win 1 prize out of 20 which could mean you get something you probably didn't want in the first place and you'd only have one chance to get stuff. I like the idea you all have a chance every day (although in an ideal world I would've loved it if every person won at least one thing but that's the double-edged sword of a system generated answer!)
I thought i'd just grab the answers from the Developer who created the 'Raffles' application system i've installed for this so you get the answer from the horses mouth on how it works:
Answer from Developer:
Programmer Code Below:
foreach( \IPS\Db::i()->select( '*', 'raffles_participants', array( 'rp_raffle_id=?', $raffle->id ), 'rand()', array( 0, count( $raffle->getParticipants() ) ) ) as $row )
{
$winners[] = $row['rp_member_id'];
$uniqWinners[ $row['rp_member_id'] ] = $row['rp_member_id'];
}
I think in the future we could do some live ones through different means, but if we're lucky enough to do stuff like this continually, then this works perfectly from my POV because I can set it up, it nicely fits in with the User Interface of the whole website and it takes care of itself. I can log in whenever I want to the same page you guys see and check out the winner later.
Like always, in the future if anyone ever wants to start getting involved more on these bits specifically, just let me know. It will also always depend on Donations too which is currently made up of what I put in to this place plus current other donations minus the proportion we need to keep the lights on around here and anything else e.g. private servers. The more we have in, the more Raffles/Giveaways and Feel Good Fund presents we can do throughout the year.
This application can set up Raffles where we can technically allow purchase of tickets for stuff but that wasn't what I wanted it for in the first place.