I built my own semi-decentralised smart contract lottery system. I haven't deployed it to the real blockchain yet and probably never will.