Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 01/01/2016
- --Last update: 23/05/2016
- --[[ Notes:
- Does:
- Retorna um argumento aleatório da tabela inserida
- Args:
- t --> Tabela
- ]]--
- table.random=function(t)
- return (type(t)=="table" and t[math.random(#t)] or math.random())
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement