Randomly chooses an item inside the tags based on the weights provided.
up:random allows the developer to input a series of tags, of which 1 or more will be shown randomly. Each item can have a weight and the tag can be specified to show more than one of the choices. Each option should be wrapped in an up:random-option tag.
<up:random>
<up:random-option weight="2">A: This will be shown 2 times as often as B.</up:random-option>
<up:random-option weight="1">B: This will be show half as often as A.</up:random-option>
</up:random>
|