First shot at a lottery function