Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API GetRandomArgument

From Wowpedia
Jump to: navigation, search
"I" iconThis function is implemented by FrameXML in FrameXML/ChatFrame.lua.

Returns one of its arguments, chosen randomly.

randArg = GetRandomArgument(...)


Any - any number of any type of values.


Any - a random value, selected from the arguments.


print( GetRandomArgument(1, "a") )

could print 1 or a.

See also