Code:
/run local t={"2g 37s","3g 99s","9g 22s","11g 68s","16g 89s","37g 55s"} SendChatMessage("loots %t for "..t[random(6)]..".", "EMOTE")
/cast Revive
But in your case it can be simplified to this:
Code:
/run SendChatMessage("loots %t for "..random(40).."g "..random(0,99).."s.", "EMOTE")
/cast Revive
More info:
String Concatenation
Edit:
Sorry, I didn't imply to "rob" players if u just "looted" 97 gold from some1
Went a bit overboard there xD