Provably Fair (Lottery Drawings)AbsoluteBit lottery drawings use the Bitcoin blockchain to determine the winner of each game. Jackpot wins are also decided using the blockchain.
The block hash used to provide the final outcome of each game is 144 blocks in the future. It's stripped of all non-numerical characters and parsed from right to left until an active player position from 0 to 9 is found, with 0 representing player position 10.
If the first 3 parsed numbers are the same, that player wins the jackpot.
https://github.com/absolutebit/lottery-drawing