The concept of the lottery has been around for centuries, offering people the chance to…