MACRO castrandom

Casts one random spell or uses one random item from the list. The character will attempt to perform the chosen action until it is successful.
 /castrandom [options] Spell, Item, Spell
== Usage ==
== Arguments ==
This command accepts a comma-separated list of actions to perform, as understood by /cast:
;spell name : Name of the spell to cast
;item name : The name of the item to be used.
;BagID slot : The bag the item is in (0 is backpack, etc...), and the slot number containing the item, starting at 1; e.g. "0 1" would use the first item in your backpack.
;invSlotID : The slot on your character in which to use an item.
An action will be chosen from the comma-separated list uniformly at random. Until the chosen action is successful, repeated invocations of /castrandom with the same arguments will attempt to perform the previously-chosen action again. Once it succeeds, the next invocation will choose a new action to perform uniformly at random.
== Examples ==
 /castrandom Polymorph,Polymorph(Turtle),Polymorph(Serpent),Polymorph(Black Cat)
 /castrandom Hearthstone,Astral Recall,Scroll of Recall
== Patch changes ==
*