Minecraft wiki entry for Development_versions, associated text: Added target selectors to use instead of the <player> field in commands.
@p: targets nearest player
@a: targets all players
@r: targets random player