Random "if" function

The $IfR function returns one of two patterns based on random value. It has the following parameters:

  1. Probability, an integer between 0 and 100 percents. The engine will use the first pattern with specified probability and the second otherwise.
  2. Pattern 1
  3. Pattern 2

Examples

$IfR(10,null,255) means 10 percent for 'null' and 90 percent for 255 value.

See Also

$if function.