sched_lottery.cpp