Hi Ranlo,
Yea sort of, basically when someone claims they're given the option to purchase a lottery ticket for say 100 sat per ticket. At the end of the day one person is given 10,000 sat.
You can see a good example on this site
http://thefaucetrunner.com/faucet/lotteryIf you play through it will give you the option of purchasing tickets for the lottery, if that makes sense?
That's actually pretty easy...
if ($userWants = true)
{
$userBalance -= ($userBuys*100);
$userTickets += $userBuys;
}
This is pseudo-code, but the real thing wouldn't be much off.