Minecraft wiki entry for Command_blocks_and_functions, associated text: As mentioned above one can create a lottery but that lottery is usable by the public. A simple edit can change that... First create a new objective. (For example: /scoreboard objectives add lottery dummy) Then use this command on a command block /scoreboard players add <playerName> lottery 1 to enter players into the lottery then do /give @r[score={lottery=1..}] to start the lottery and only the players chosen can be in the lottery.