Skip to main content

RandomElement2

Description​

Scripted in EventLib.lur, this chooses one of the two specified arguments.
Other variations of this function exist up to RandomElement14 (excluding RandomElement12), and work the same way, just with a different amount of supported arguments.

function RandomElement2(param1, param2) --[[ ... ]] end

Parameters​

  • param1: any
  • param2: any

Return Values​

Even chance of returning either param1 or param2.

Example​

...