Revert "Lottery function"

This reverts commit 6f6c98f1b44962998bce08045891eee63d2f50cf.