intelligent lottery system