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(...)

Arguments

... 
Any - any number of any type of values.

Returns

randArg 
Any - a random value, selected from the arguments.

Example

print( GetRandomArgument(1, "a") )

could print 1 or a.

See also