Organizing a game of chance or lottery: what are the rules?