Re Ra's Lottery Script - From https://www.ruby-forum.com/topic/4418987