Mathematics of Keno and Lotteries