rb:random-option

Description

Contains code to be output when selected by the rb:random tag. You can control the frequency of this pick with the weight attribute.

The rb:random-option tag must be inside an rb:random tag.

 

Attributes

optional weight float Allows for controlling the frequency of a choice. (default value is 1.0)

 

Notes

  • Weights of options are relative to the number of options left, which shrinks if unique==true and pick>1 in the parent rb:random tag.
  • Weights of options can be any float > 0. The weights are relative to each other, not necessarily to 1.