Chat Macro

So I have a few macros that would issue a chat message at random. This seemed to work up until late Shadowlands I want to say… Is this just dead and gone now or is there a variant that would produce the same results? I liked it on my Druid as it would yell “KANEDA!” randomly when using Sunfire. Good times yelling “YOINK!” when Death Gripping too…

Example:

/cast Army of the Dead
/run if 1==random(20)then SendChatMessage(GetRandomArgument("P SHERMAN 42 WALLABY WAY SYDNEY"),YELL)end

GetRandomArgument is no longer part of the retail API but given it was just using random, you could use your own version

return (select(random(select("#", ...)), ...));