1. one random variable using block generated random number, R1
2. another random variable using ticket transaction hash rather than ticket generated lucky number. R2
3. ticket win condition:
Range = 100000000
(R1 % Range + R2 % Range ) % Range < Range/odds.
4. Payout accounting using chancecoin's approach
http://chancecoin.com/technical5. share dividends each block == house edge. (expect result in long term)
6 no need to care/log ticket sale, expected winners, etc...., each ticket is independent from others.
more to draft, this feature is now quite similar to the classic satoshi dice.