how-lottery-system-works