Select Random Player

I was wondering if anyone could help me with creating a function to select a random player in the server.

[lua]function GetRandomPlayer()
return table.Random(player.GetAll())
end[/lua]

http://www.facepunch.com/showthread.php?t=772110
ninja’d

Thanks, Both were helpful.